Skip to content

Commit 837be0f

Browse files
committed
Fix fading again
1 parent c5abcc6 commit 837be0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/globe.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ globe.pointColor(function(point){
5757
var color = POINT_COLOR[point.type];
5858
var ttl = POINT_TTL[point.type];
5959
if(point.notSeenTime!==undefined && ttl!==undefined){
60-
color += (point.notSeenTime/ttl*255).toString(16).padStart(2,'0');
60+
var notSeenSeconds = point.notSeenTime/1000;
61+
color += (255-Math.round(notSeenSeconds/ttl*255)).toString(16).padStart(2,'0');
6162
}
6263
return color;
6364
});

0 commit comments

Comments
 (0)