Skip to content
Snippets Groups Projects
Commit 0bdeb975 authored by John Hodge (sonata)'s avatar John Hodge (sonata)
Browse files

Usermode/libc - Fix time conversion code

parent 3b951b61
Branches
No related merge requests found
......@@ -114,7 +114,7 @@ int64_t get_days_since_y2k(int64_t ts, int *h, int *m, int *s)
ts -= n_leap;
#endif
int64_t days = ts / 24*60*60;
int64_t days = ts / (24*60*60);
int64_t seconds = ts % (24*60*60);
*s = (is_ls ? 60 : seconds % 60);
*m = (seconds/60 % 24);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment