tazbug diff web/plugins/dashboard/dashboard.cgi @ rev 137
Update all plugins to use new storage paths
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 14:59:49 2017 +0100 (2017-02-22) |
parents | 039c90c60494 |
children | b4700d7f9d42 |
line diff
1.1 --- a/web/plugins/dashboard/dashboard.cgi Tue Feb 21 00:51:31 2017 +0100 1.2 +++ b/web/plugins/dashboard/dashboard.cgi Wed Feb 22 14:59:49 2017 +0100 1.3 @@ -12,8 +12,6 @@ 1.4 gettext "You must be logged in to view the dashboard" 1.5 exit 0 1.6 fi 1.7 - bugs=$(ls -1 $bugdir | wc -l) 1.8 - bugsize=$(du -sh $bugdir | awk '{print $1}') 1.9 # Source all plugins.conf to get DASHBOARD_TOOLS and ADMIN_TOOLS 1.10 ADMIN_TOOLS="" 1.11 DASHBOARD_TOOLS="" 1.12 @@ -31,9 +29,9 @@ 1.13 </div> 1.14 <h2>Dashboard</h2> 1.15 <pre> 1.16 -Bugs count : $bugs 1.17 -Database size : $bugsize 1.18 -Server uptime :$(uptime | cut -d "," -f 1-2) 1.19 +Bugs count : $(ls_bugs | wc -l) 1.20 +Messages count : $(find $bugdir -name msg.* | wc -l) 1.21 +Database size : $(du -sh $bugdir | awk '{print $1}') 1.22 </pre> 1.23 EOT 1.24