mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Uptime (NetBSD): fix boot time calcuation
This commit is contained in:
@@ -20,7 +20,7 @@ const char* ffDetectUptime(FFUptimeResult* result)
|
||||
return "sysctl({CTL_KERN, KERN_BOOTTIME}) failed";
|
||||
|
||||
#if __NetBSD__
|
||||
result->bootTime = (uint64_t) bootTime.tv_sec * 1000 + (uint64_t) bootTime.tv_nsec / 10000000;
|
||||
result->bootTime = (uint64_t) bootTime.tv_sec * 1000 + (uint64_t) bootTime.tv_nsec / 1000000;
|
||||
#else
|
||||
result->bootTime = (uint64_t) bootTime.tv_sec * 1000 + (uint64_t) bootTime.tv_usec / 1000;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user