From 8fb65708825279e287bdf4d9ca3b20e95124bc99 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Wed, 28 Mar 2012 18:59:06 +0000 Subject: [PATCH] fix mpg extraction progress bar git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@863 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- var/mongoose/cgi-bin/browse/mpg/mpg.jim | 2 +- var/mongoose/cgi-bin/browse/mpg/progress.jim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 2c74dd3..9a47be1 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.3-4 +Version: 0.9.3-5 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file diff --git a/var/mongoose/cgi-bin/browse/mpg/mpg.jim b/var/mongoose/cgi-bin/browse/mpg/mpg.jim index da1da26..8993492 100755 --- a/var/mongoose/cgi-bin/browse/mpg/mpg.jim +++ b/var/mongoose/cgi-bin/browse/mpg/mpg.jim @@ -23,7 +23,7 @@ puts "
-Audio Extraction +Extract to MPG diff --git a/var/mongoose/cgi-bin/browse/mpg/progress.jim b/var/mongoose/cgi-bin/browse/mpg/progress.jim index 6bb52b0..8728731 100755 --- a/var/mongoose/cgi-bin/browse/mpg/progress.jim +++ b/var/mongoose/cgi-bin/browse/mpg/progress.jim @@ -17,7 +17,7 @@ if {![file exists "${bfile}.mpg"]} { puts "0" } else { set sz [file size $rfile] - set nsz [expr [file size "${bfile}.mpg"] / 0.3] + set nsz [expr [file size "${bfile}.mpg"] / 0.75] set perc [expr $nsz * 100 / $sz] if {$perc > 100} { set perc 100 }
File:$rfile