We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5abcc6 commit 837be0fCopy full SHA for 837be0f
src/main/resources/globe.js
@@ -57,7 +57,8 @@ globe.pointColor(function(point){
57
var color = POINT_COLOR[point.type];
58
var ttl = POINT_TTL[point.type];
59
if(point.notSeenTime!==undefined && ttl!==undefined){
60
- color += (point.notSeenTime/ttl*255).toString(16).padStart(2,'0');
+ var notSeenSeconds = point.notSeenTime/1000;
61
+ color += (255-Math.round(notSeenSeconds/ttl*255)).toString(16).padStart(2,'0');
62
}
63
return color;
64
});
0 commit comments