mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Uptime (Windows): silences a compiler warning
This commit is contained in:
@@ -22,13 +22,13 @@ const char* ffDetectUptime(FFUptimeResult* result)
|
||||
}
|
||||
|
||||
result->uptime = GetTickCount64();
|
||||
ok:
|
||||
|
||||
#else
|
||||
uint64_t uptime;
|
||||
QueryInterruptTime(&uptime);
|
||||
result->uptime = uptime / 10000; // Convert from 100-nanosecond intervals to milliseconds
|
||||
#endif
|
||||
|
||||
ok:
|
||||
result->bootTime = ffTimeGetNow() - result->uptime;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user