Package: wmmon Version: 1.4-4 Severity: minor Tags: patch When the uptime is greater than 99 days, the uptime display is shown wrong (it shows blank digits instead of actual digits).
The attached patch fixes it and may help clarify the issue if it's not clear enough from the description. It also copes with the case of uptime greater than 999 days, by displaying only the last three digits (as there's no more room).
diff -ru wmcpu-1.4-orig/wmcpu.c wmcpu-1.4/wmcpu.c --- wmcpu-1.4-orig/wmcpu.c 2005-12-24 00:41:14.000000000 +0100 +++ wmcpu-1.4/wmcpu.c 2012-04-23 14:30:32.000000000 +0200 @@ -313,9 +313,9 @@ copy_xpm_area(63, 66, 3, 9, 25, 48); tempy = days % 10; copy_xpm_area(3 + (tempy * 6), 66, 6, 9, 18, 48); - tempy = days / 10; + tempy = (days / 10) % 10; copy_xpm_area(3 + (tempy * 6), 66, 6, 9, 12, 48); - tempy = days / 100; + tempy = (days / 100) % 10; copy_xpm_area(3 + (tempy * 6), 66, 6, 9, 6, 48); } }