mirror of https://github.com/xzeldon/htop.git
Fix typo.
This commit is contained in:
parent
1acfb0a752
commit
43728b37e7
|
@ -80,7 +80,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, int size) {
|
||||||
cpuFrequency /= 1000;
|
cpuFrequency /= 1000;
|
||||||
unit = 'G';
|
unit = 'G';
|
||||||
}
|
}
|
||||||
xSnprintf(cpuFrequencyBuffer, 15, "%.3f%cHz", cpuFrequency, unit);
|
xSnprintf(cpuFrequencyBuffer, sizeof(cpuFrequencyBuffer), "%.3f%cHz", cpuFrequency, unit);
|
||||||
}
|
}
|
||||||
if (this->pl->settings->showCPUUsage) {
|
if (this->pl->settings->showCPUUsage) {
|
||||||
xSnprintf(buffer, size, "%5.1f%% %s", percent, cpuFrequencyBuffer);
|
xSnprintf(buffer, size, "%5.1f%% %s", percent, cpuFrequencyBuffer);
|
||||||
|
|
Loading…
Reference in New Issue