mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 10:16:36 +02:00
Use long int instead uint64_t
This commit is contained in:
@ -73,9 +73,9 @@ void get_elapsed_time_str(char *buf, int bufsize, uint64_t secs)
|
||||
if (!secs)
|
||||
return;
|
||||
|
||||
uint64_t seconds = secs % 60;
|
||||
uint64_t minutes = (secs % 3600) / 60;
|
||||
uint64_t hours = secs / 3600;
|
||||
long int seconds = secs % 60;
|
||||
long int minutes = (secs % 3600) / 60;
|
||||
long int hours = secs / 3600;
|
||||
|
||||
if (!minutes && !hours)
|
||||
snprintf(buf, bufsize, "%.2ld", seconds);
|
||||
|
Reference in New Issue
Block a user