fix another size issue

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@677 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-01-18 00:07:25 +00:00
parent ae607a6071
commit 44038eb7a1
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Package: webif Package: webif
Priority: optional Priority: optional
Section: web Section: web
Version: 0.8.12-2 Version: 0.8.12-3
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk Maintainer: af123@hummypkg.org.uk
Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.5),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.5),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm

View File

@ -16,9 +16,10 @@ set dir [dict get $_cgi dir]
#9.4G /media/My Video/Archive #9.4G /media/My Video/Archive
#1.4G /media/My Video/CSI_ Crime Scene Investigation #1.4G /media/My Video/CSI_ Crime Scene Investigation
puts "{" puts "{"
regsub -all {([\\["$])} $dir {\\\1} xdir
foreach line [split [exec /mod/bin/busybox/du -h -d 1 "$dir/"] "\n"] { foreach line [split [exec /mod/bin/busybox/du -h -d 1 "$dir/"] "\n"] {
lassign [split $line "\t"] size node lassign [split $line "\t"] size node
regsub -- "^$dir/" $node "" node regsub -- "^$xdir/" $node "" node
puts "\"$node\" : \"$size\"," puts "\"$node\" : \"$size\","
} }