/[smecontribs]/rpms/smeserver-durep/contribs7/smeserver-durep-1.3.0-df.patch
ViewVC logotype

Annotation of /rpms/smeserver-durep/contribs7/smeserver-durep-1.3.0-df.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Sep 11 05:53:14 2012 UTC (12 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-durep-1_3_0-5_el4_sme, smeserver-durep-1_3_0-6_el4_sme, HEAD
Changes since 1.1: +1 -1 lines
* Tue Sep 11 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme
- fix do not copy files  and filelist
- corrected patch to df of plugged disk

1 unnilennium 1.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 unnilennium 1.2 +print $dflist;
17 unnilennium 1.1 +
18     +
19     print qq{
20     </table>
21     </body>

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed