Author: Pedro Gimeno <parigalo@formauri.es>
Description: Fix uptime display if more than 99 days
Last-Update: 2012-04-23
Bug-Debian: https://bugs.debian.org/670152
Forwarded: Yes

--- a/wmcpu.c
+++ b/wmcpu.c
@@ -310,9 +310,9 @@ void wmcpu_routine(void)
 			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);
 		}
 	}
