cookutils rev 106
web: fix unbuilt count...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 09 00:53:48 2011 +0200 (2011-05-09) |
parents | 9764e76cb94e |
children | 6c9f7e430a6b |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Mon May 09 00:51:40 2011 +0200 1.2 +++ b/web/cooker.cgi Mon May 09 00:53:48 2011 +0200 1.3 @@ -171,7 +171,7 @@ 1.4 # Main page with summary. 1.5 inwok=$(ls $WOK | wc -l) 1.6 cooked=$(ls $PKGS/*.tazpkg | wc -l) 1.7 - unbuilt=$(($cooked - $inwok)) 1.8 + unbuilt=$(($inwok - $cooked)) 1.9 [ "$cooked" -gt 0 ] && div=$(($inwok / 100)) 1.10 [ "$cooked" -gt 0 ] && pct=$(($cooked / $div)) 1.11 [ "$cooked" == 0 ] && pct=0