summaryrefslogtreecommitdiffstats
path: root/DiskIOMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 12:28:11 +0200
committercgzones <cgzones@googlemail.com>2020-10-10 11:25:19 +0200
commit79ad39c718bfb2973d610c2d039a5024354e602f (patch)
treeefac0bfaf60cc44a5a2b2a8c8db251cbacf5ebab /DiskIOMeter.c
parente5fdb80c7d13d836ec244390976741dd99bc6535 (diff)
Mark Object pointer to _display function const
Diffstat (limited to 'DiskIOMeter.c')
-rw-r--r--DiskIOMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DiskIOMeter.c b/DiskIOMeter.c
index 781d9bb6..6baca32c 100644
--- a/DiskIOMeter.c
+++ b/DiskIOMeter.c
@@ -59,7 +59,7 @@ static void DiskIOMeter_updateValues(Meter* this, char* buffer, int len) {
snprintf(buffer, len, "%sB %sB %.1f%%", bufferRead, bufferWrite, cached_utilisation_diff);
}
-static void DIskIOMeter_display(ATTR_UNUSED Object* cast, RichString* out) {
+static void DIskIOMeter_display(ATTR_UNUSED const Object* cast, RichString* out) {
char buffer[16];
int color = cached_utilisation_diff > 40.0 ? DISKIO_UTIL_HIGH : METER_VALUE;

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