Changed unsigned int to unsigned long to truly handle an unreasonably long run.
This commit is contained in:
parent
a9141fa394
commit
96c716d74b
@ -68,10 +68,10 @@ static inline void print_tblheader(const char *c) {
|
|||||||
// 21,474,836.47 seconds
|
// 21,474,836.47 seconds
|
||||||
// someone would need to idle in-game for 248 days
|
// someone would need to idle in-game for 248 days
|
||||||
static void print_time(const unsigned char *strcs) {
|
static void print_time(const unsigned char *strcs) {
|
||||||
const unsigned int num = strtoul((const char*)strcs, NULL, 10);
|
const unsigned long num = strtoul((const char*)strcs, NULL, 10);
|
||||||
unsigned int s = num/100;
|
unsigned long s = num/100;
|
||||||
const unsigned int cs = num % 100;
|
const unsigned long cs = num % 100;
|
||||||
const unsigned int min = s/60;
|
const unsigned long min = s/60;
|
||||||
s = s % 60;
|
s = s % 60;
|
||||||
if (min > 0) {
|
if (min > 0) {
|
||||||
printf("<TD>%u:%.2u.%.2u</TD>", min, s, cs);
|
printf("<TD>%u:%.2u.%.2u</TD>", min, s, cs);
|
||||||
|
Loading…
Reference in New Issue
Block a user