From 43a12832a343747b7317987b552a87eb8ed5b42d Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 7 Jul 2018 10:50:25 +0200 Subject: Change uint64_t to uintmax_t --- components/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/cpu.c') diff --git a/components/cpu.c b/components/cpu.c index e320ff6..ceb95d8 100644 --- a/components/cpu.c +++ b/components/cpu.c @@ -11,11 +11,11 @@ const char * cpu_freq(void) { - uint64_t freq; + uintmax_t freq; /* in kHz */ if (pscanf("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", - "%"SCNu64, &freq) != 1) { + "%" PRIuMAX, &freq) != 1) { return NULL; } @@ -74,8 +74,8 @@ cpu_perc(void) { int mib[2]; - static uint64_t a[CPUSTATES]; - uint64_t b[CPUSTATES]; + static uintmax_t a[CPUSTATES]; + uintmax_t b[CPUSTATES]; size_t size; mib[0] = CTL_KERN; -- cgit v1.2.3