1 |
diff -up smeserver-durep-1.3.0/root/etc/e-smith/web/panels/manager/html/durep/durep.cgi.df smeserver-durep-1.3.0/root/etc/e-smith/web/panels/manager/html/durep/durep.cgi |
2 |
--- smeserver-durep-1.3.0/root/etc/e-smith/web/panels/manager/html/durep/durep.cgi.df 2012-08-15 21:56:35.000000000 -0400 |
3 |
+++ smeserver-durep-1.3.0/root/etc/e-smith/web/panels/manager/html/durep/durep.cgi 2012-09-11 01:11:01.000000000 -0400 |
4 |
@@ -165,6 +165,17 @@ sub displayList { |
5 |
print "</tr>\n"; |
6 |
} |
7 |
} |
8 |
+# table to show df of all disk on main page |
9 |
+ print qq{ |
10 |
+</table> |
11 |
+<table class='list' cellpadding=0 cellspacing=0 border=0> |
12 |
+<tr><th>Filesystem</th><th>Sized</th><th>Used</th><th>Available</th><th>Use %</th><th>Mounted on</th></tr> |
13 |
+}; |
14 |
+my $dflist = `df -h|grep -v 'Use%'|sed 's#^#<tr><td>#g'|sed 's#\$#</td></tr>#g'`; |
15 |
+$dflist =~ s/[ ]+/<\/td><td>/g; |
16 |
+# $dflist =~ s/$/<\/td><\/tr>/g; |
17 |
+ |
18 |
+ |
19 |
print qq{ |
20 |
</table> |
21 |
</body> |