summaryrefslogtreecommitdiffstats
path: root/pcp/Platform.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-07-09 12:42:36 +1000
committerNathan Scott <nathans@redhat.com>2021-07-09 12:42:36 +1000
commite7aaf79166c089dde2ffb34de7e0559c903aceae (patch)
treed0a0113d199df5b48e0aa91cb13b2c2de81a90eb /pcp/Platform.h
parent9f667f2c746c6e8b7cdb300dc36bc2f705d03884 (diff)
Remove unnecessary include files from PCPDynamicMeter.c
Also resolve a few unintended style guide transgressions in the PCP platform code.
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r--pcp/Platform.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h
index 7cf3722b..6b0215c8 100644
--- a/pcp/Platform.h
+++ b/pcp/Platform.h
@@ -77,13 +77,13 @@ char* Platform_getInodeFilename(pid_t pid, ino_t inode);
FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid);
-void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
+void Platform_getPressureStall(const char* file, bool some, double* ten, double* sixty, double* threehundred);
bool Platform_getDiskIO(DiskIOData* data);
bool Platform_getNetworkIO(NetworkIOData* data);
-void Platform_getBattery(double *percent, ACPresence *isOnAC);
+void Platform_getBattery(double* percent, ACPresence* isOnAC);
void Platform_getHostname(char* buffer, size_t size);
@@ -242,11 +242,11 @@ bool Metric_enabled(Metric metric);
void Metric_enableThreads(void);
-bool Metric_fetch(struct timeval *timestamp);
+bool Metric_fetch(struct timeval* timestamp);
bool Metric_iterate(Metric metric, int* instp, int* offsetp);
-pmAtomValue* Metric_values(Metric metric, pmAtomValue *atom, int count, int type);
+pmAtomValue* Metric_values(Metric metric, pmAtomValue* atom, int count, int type);
const pmDesc* Metric_desc(Metric metric);
@@ -254,9 +254,9 @@ int Metric_instanceCount(Metric metric);
int Metric_instanceOffset(Metric metric, int inst);
-pmAtomValue* Metric_instance(Metric metric, int inst, int offset, pmAtomValue *atom, int type);
+pmAtomValue* Metric_instance(Metric metric, int inst, int offset, pmAtomValue* atom, int type);
-int Platform_addMetric(Metric id, const char *name);
+int Platform_addMetric(Metric id, const char* name);
void Platform_gettime_realtime(struct timeval* tv, uint64_t* msec);

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