about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index ca09283..06987e4 100644
--- a/client.c
+++ b/client.c
@@ -360,10 +360,10 @@ static void serverMap(void) {
 		for (int x = 0; x < MAP_COLS; ++x) {
 			struct MapTile tile = map.tiles[y][x];
 
-			double count = (tile.modifyCount)
+			double count = (tile.modifyCount && countMax > 1)
 				? log(tile.modifyCount) / log(countMax)
 				: 0.0;
-			double time = (tile.modifyTime)
+			double time = (tile.modifyTime && timeNow - timeMin)
 				? (double)(tile.modifyTime - timeMin) / (double)(timeNow - timeMin)
 				: 0.0;
 			count *= ARRAY_LEN(MAP_CELLS) - 2;
ix tests for diff spansJune McEnroe 2021-01-20Avoid matching ':' in make tagsJune McEnroe 2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe 2021-01-19Escape \ and / in mtags search patternsJune McEnroe 2021-01-20Use mtags in source-filterJune McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe 2021-01-18Allow matching lexers using first input lineJune McEnroe