Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/experimental/system_stats/system_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ getFile(const char *filename, char *buffer, int bufferSize)
}

static void
statSet(const char *name, int value, TSMutex stat_creation_mutex)
statSet(const char *name, long value, TSMutex stat_creation_mutex)
{
int stat_id = statAdd(name, TS_RECORDDATATYPE_INT, stat_creation_mutex);
if (stat_id != TS_ERROR) {
Expand Down Expand Up @@ -153,7 +153,7 @@ setNetStat(TSMutex stat_creation_mutex, const char *interface, const char *entry
if (getFile(&sysfs_name[0], &data[0], sizeof(data)) < 0) {
TSDebug(DEBUG_TAG, "Error reading file %s", sysfs_name);
} else {
statSet(stat_name, atoi(data), stat_creation_mutex);
statSet(stat_name, atol(data), stat_creation_mutex);
}
}

Expand Down