Skip to content
Snippets Groups Projects
Commit a230a181 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Display file sizes as signed values, so -1 (non-existent file) is clear

parent 8a062f59
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -78,5 +78,5 @@ function file_size_float(size, unit, precision) ...@@ -78,5 +78,5 @@ function file_size_float(size, unit, precision)
else if(size >= one_kibibyte || unit == one_kibibyte) else if(size >= one_kibibyte || unit == one_kibibyte)
return format("%1.*fK", precision, size/one_kibibyte); return format("%1.*fK", precision, size/one_kibibyte);
else else
return format("%lu", size); return format("%ld", size);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment