summaryrefslogtreecommitdiffstats
path: root/unsupported/Platform.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-28 18:19:38 +0100
committercgzones <cgzones@googlemail.com>2021-01-29 14:12:44 +0100
commit3acf28c259f1a393badcc2e99c9646e19a911f98 (patch)
tree78ea9191604c1aca520d358af0927b2c007dbf78 /unsupported/Platform.c
parentbd694c0ce60a60e29dc4ae22923f251fbd196332 (diff)
Unsupported: pass compilation
Diffstat (limited to 'unsupported/Platform.c')
-rw-r--r--unsupported/Platform.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 94e1b7c7..de231b5c 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -6,19 +6,22 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include <math.h>
+#include "config.h" // IWYU pragma: keep
#include "Platform.h"
-#include "Macros.h"
+
+#include <math.h>
+
#include "CPUMeter.h"
-#include "MemoryMeter.h"
-#include "SwapMeter.h"
-#include "TasksMeter.h"
-#include "LoadAverageMeter.h"
#include "ClockMeter.h"
#include "DateMeter.h"
#include "DateTimeMeter.h"
#include "HostnameMeter.h"
+#include "LoadAverageMeter.h"
+#include "Macros.h"
+#include "MemoryMeter.h"
+#include "SwapMeter.h"
+#include "TasksMeter.h"
#include "UptimeMeter.h"
@@ -93,6 +96,8 @@ double Platform_setCPUValues(Meter* this, int cpu) {
v[CPU_METER_FREQUENCY] = NAN;
v[CPU_METER_TEMPERATURE] = NAN;
+ this->curItems = 1;
+
return 0.0;
}

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