fix
This commit is contained in:
parent
b6c223e391
commit
432da14dfd
|
@ -209,7 +209,7 @@ def main(args):
|
||||||
'value': int(float(float_to_percent(pool_status['capacity']).strip('%'))), 'warn': args.warning_free, 'crit': args.critical_free, 'min': 0, 'unit': '%'
|
'value': int(float(float_to_percent(pool_status['capacity']).strip('%'))), 'warn': args.warning_free, 'crit': args.critical_free, 'min': 0, 'unit': '%'
|
||||||
},
|
},
|
||||||
'size': {
|
'size': {
|
||||||
'value': filesize(pool_status['size'], spaces=False, formatter=False), 'min': 0
|
'value': filesize(pool_status['size'], spaces=False, formatter=True), 'min': 0
|
||||||
},
|
},
|
||||||
'fragmentation': {
|
'fragmentation': {
|
||||||
'value': int(float(float_to_percent(pool_status['fragmentation']).strip('%'))), 'warn': float_to_percent(warning_frag_float).strip('%'), 'crit': float_to_percent(critical_frag_float).strip('%'), 'min': 0, 'unit': '%'
|
'value': int(float(float_to_percent(pool_status['fragmentation']).strip('%'))), 'warn': float_to_percent(warning_frag_float).strip('%'), 'crit': float_to_percent(critical_frag_float).strip('%'), 'min': 0, 'unit': '%'
|
||||||
|
|
Loading…
Reference in New Issue