Skip to content

Commit 7f8efe8

Browse files
Merge pull request #9 from jdgwartney/master
Use - to be backward compatible with the NodeJS version of sources
2 parents b998ea4 + 23d6342 commit 7f8efe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function plugin:onParseValues(data)
3232
each(function (v, i)
3333
local metric, cpu_id = v.metric:match('^(system%.cpu%.usage)|cpu=(%d+)$')
3434
if metric then
35-
table.insert(result, pack('CPU_CORE', v.value, v.timestamp, plugin.source .. '_C' .. cpu_id))
35+
table.insert(result, pack('CPU_CORE', v.value, v.timestamp, plugin.source .. '-C' .. cpu_id))
3636
end
3737
end, data)
3838

0 commit comments

Comments
 (0)