diff --git a/src/uptime/uptime.c.v b/src/uptime/uptime.c.v index 008e6a03..3ea4dd20 100644 --- a/src/uptime/uptime.c.v +++ b/src/uptime/uptime.c.v @@ -1,4 +1,5 @@ import os +import math import common #include @@ -34,7 +35,7 @@ fn print_uptime(utmp_buf []C.utmpx) ! { endptr := &char(0) upsecs := C.strtod(&buf[0], &endptr) if buf.bytestr() != endptr.vstring() { - if 0 <= upsecs && upsecs < max_f64 { + if 0 <= upsecs && upsecs < math.max_f64 { uptime = i64(upsecs) } else { uptime = -1