Skip to content
Snippets Groups Projects

Add log partitioning similar to fpart

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -45,7 +45,7 @@ def convert_si(value: str | float | int,
# Extract numeric part and unit part
value = value.strip()
for suffix in ['K', 'M', 'G', 'T']:
if value.endswith(suffix):
if value.upper().endswith(suffix):
unit = suffix
value = value[:-1]
break
Loading