forked from hummypkg/webif
fix pretty size
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1819 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
@@ -7,7 +7,8 @@ if {![exists -proc pretty_size]} {
|
||||
set size $($size / 1024.0)
|
||||
}
|
||||
|
||||
set size [string trimright [format "%.2f" $size] "0."]
|
||||
set size [string trimright \
|
||||
[string trimright [format "%.2f" $size] "0"] "."]
|
||||
|
||||
return "$size [lindex $units $i]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user