Skip to content

Commit d727c4f

Browse files
committed
fix memory plugin
1 parent d6fdeb2 commit d727c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/system/linux/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run(self, zbx):
5858
data = line.split()
5959
key, val = data[0], data[1]
6060
key = key.split(':')[0]
61-
meminfo[key] = float(val) * 1024
61+
meminfo[key] = int(val) * 1024
6262

6363
for item in self.Items:
6464
zbx_key, meminfo_key = item[0], item[1]

0 commit comments

Comments
 (0)