mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
CpuUsage: improve performance
by moving the first `/proc/stat` query earlier
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
#ifndef FF_INCLUDED_detection_cpu_cpuUsage
|
||||
#define FF_INCLUDED_detection_cpu_cpuUsage
|
||||
|
||||
const char* ffGetCpuUsagePercent(double* result);
|
||||
const char* ffGetCpuUsageInfo(long* inUseAll, long* totalAll);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user