Skip to content

Commit 1e8220c

Browse files
authored
Merge pull request #76 from skafandri/patch-1
[CPCLOUD-4896] Cast diskinodes percent to integer
2 parents d815bac + c8f0e2d commit 1e8220c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent360/plugins/diskinodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def run(self, config):
1414
for row in df_output_lines:
1515
if row[0] == 'tmpfs':
1616
continue
17-
disk[row[0]] = {'total': int(row[1]), 'used': int(row[2]), 'free': int(row[3]), 'percent': row[4][:-1]}
17+
disk[row[0]] = {'total': int(row[1]), 'used': int(row[2]), 'free': int(row[3]), 'percent': int(row[4][:-1])}
1818
except:
1919
pass
2020

0 commit comments

Comments
 (0)