diff --git a/webif/lib/pretty_size b/webif/lib/pretty_size index 4f4f02c..09c4572 100644 --- a/webif/lib/pretty_size +++ b/webif/lib/pretty_size @@ -1,7 +1,6 @@ if {![exists -proc pretty_size]} { - proc pretty_size {size} { - set units {bytes KiB MiB GiB TiB} + proc pretty_size {size} {{units {bytes KiB MiB GiB TiB}}} { # for {set i 0; set l [llength $units]; incr l -1} { # $size > 1023 && $i < $l} {incr i} {