cpu_freq: Change to 64 bit integers
Remove unnecessary cast to size_t
This commit is contained in:
parent
43a12832a3
commit
e20b50112e
|
@ -53,7 +53,8 @@
|
||||||
const char *
|
const char *
|
||||||
cpu_freq(void)
|
cpu_freq(void)
|
||||||
{
|
{
|
||||||
int freq, mib[2];
|
int mib[2];
|
||||||
|
uintmax_t freq;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
mib[0] = CTL_HW;
|
mib[0] = CTL_HW;
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt_human((size_t)freq * 1000 * 1000, 1000);
|
return fmt_human(freq * 1000 * 1000, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
|
|
Loading…
Reference in New Issue