Changed unsigned int to unsigned long to truly handle an unreasonably long run.

This commit is contained in:
2017-03-21 15:40:52 -07:00
parent a9141fa394
commit 96c716d74b

View File

@ -68,10 +68,10 @@ static inline void print_tblheader(const char *c) {
// 21,474,836.47 seconds
// someone would need to idle in-game for 248 days
static void print_time(const unsigned char *strcs) {
const unsigned int num = strtoul((const char*)strcs, NULL, 10);
unsigned int s = num/100;
const unsigned int cs = num % 100;
const unsigned int min = s/60;
const unsigned long num = strtoul((const char*)strcs, NULL, 10);
unsigned long s = num/100;
const unsigned long cs = num % 100;
const unsigned long min = s/60;
s = s % 60;
if (min > 0) {
printf("<TD>%u:%.2u.%.2u</TD>", min, s, cs);