forked from hummypkg/webif
use static local variable for units
This commit is contained in:
parent
61582251c7
commit
b6eceebc26
@ -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} {
|
||||
|
Loading…
Reference in New Issue
Block a user