|
|
|
@ -68,10 +68,10 @@ static inline void print_tblheader(const char *c) {
@@ -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); |
|
|
|
|