Fix typo.

This commit is contained in:
Arnavion 2019-08-10 11:46:21 -07:00
parent 1acfb0a752
commit 43728b37e7
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, int size) {
cpuFrequency /= 1000;
unit = 'G';
}
xSnprintf(cpuFrequencyBuffer, 15, "%.3f%cHz", cpuFrequency, unit);
xSnprintf(cpuFrequencyBuffer, sizeof(cpuFrequencyBuffer), "%.3f%cHz", cpuFrequency, unit);
}
if (this->pl->settings->showCPUUsage) {
xSnprintf(buffer, size, "%5.1f%% %s", percent, cpuFrequencyBuffer);