summaryrefslogtreecommitdiffstats
path: root/CPUMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-24 18:31:03 +0100
committerBenny Baumann <BenBE@geshi.org>2020-12-06 16:03:44 +0100
commite1ce141bc3123c1dea7eb2ef908c8ebce945c72a (patch)
tree2da1f500777ba003c3ea1d73d97e259f0e099974 /CPUMeter.c
parentd9224c66a41e7918570b81d41495870c20380c1d (diff)
Use size_t as len type for Meter_UpdateValues
Most of the time the parameter is passed to snprintf type functions
Diffstat (limited to 'CPUMeter.c')
-rw-r--r--CPUMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPUMeter.c b/CPUMeter.c
index 855d94bd..97fc3f0b 100644
--- a/CPUMeter.c
+++ b/CPUMeter.c
@@ -50,7 +50,7 @@ static void CPUMeter_init(Meter* this) {
Meter_setCaption(this, "Avg");
}
-static void CPUMeter_updateValues(Meter* this, char* buffer, int size) {
+static void CPUMeter_updateValues(Meter* this, char* buffer, size_t size) {
int cpu = this->param;
if (cpu > this->pl->cpuCount) {
xSnprintf(buffer, size, "absent");

© 2014-2024 Faster IT GmbH | imprint | privacy policy