diff options
author | lukem <lukem@pkgsrc.org> | 2001-11-19 03:47:42 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2001-11-19 03:47:42 +0000 |
commit | 409928b75a64da5b12130c71de56122856ea2f15 (patch) | |
tree | 3760bac62f7788a787a5cc23643adb4ad0f4f707 /sysutils/ups-nut-cgi | |
parent | dd74500881aabd4cc496f1328ce1e4a24108b478 (diff) | |
download | pkgsrc-409928b75a64da5b12130c71de56122856ea2f15.tar.gz |
upsstats.cgi enhancements:
- remove unnecessary empty table element
- if ups var `runtime' is available, display it
Diffstat (limited to 'sysutils/ups-nut-cgi')
-rw-r--r-- | sysutils/ups-nut-cgi/distinfo | 3 | ||||
-rw-r--r-- | sysutils/ups-nut-cgi/patches/patch-ae | 38 |
2 files changed, 40 insertions, 1 deletions
diff --git a/sysutils/ups-nut-cgi/distinfo b/sysutils/ups-nut-cgi/distinfo index bcd82b29692..ce062f02980 100644 --- a/sysutils/ups-nut-cgi/distinfo +++ b/sysutils/ups-nut-cgi/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2001/11/18 00:57:50 lukem Exp $ +$NetBSD: distinfo,v 1.5 2001/11/19 03:47:42 lukem Exp $ SHA1 (nut-0.45.2.tar.gz) = 9c225205127eee1e9bb55d9a28ff1290b47f75aa Size (nut-0.45.2.tar.gz) = 330851 bytes @@ -6,3 +6,4 @@ SHA1 (patch-aa) = f99436a2e83654e5a078b6ea899cc33ef8a48fa9 SHA1 (patch-ab) = 47be57592a77ded239f20d8a2bd686c34dabfe6f SHA1 (patch-ac) = ded33bbc4c78b2b7c53230c0d4ab3c663104582f SHA1 (patch-ad) = f9f7fdc08c49aa1c1aa667ac6b7597679c9fea4e +SHA1 (patch-ae) = 39ea3f3a4234790837ccf6e5799c39b6ba390975 diff --git a/sysutils/ups-nut-cgi/patches/patch-ae b/sysutils/ups-nut-cgi/patches/patch-ae new file mode 100644 index 00000000000..f50fae45b14 --- /dev/null +++ b/sysutils/ups-nut-cgi/patches/patch-ae @@ -0,0 +1,38 @@ +$NetBSD: patch-ae,v 1.1 2001/11/19 03:47:42 lukem Exp $ + +--- clients/upsstats.c.orig Wed Aug 29 22:36:41 2001 ++++ clients/upsstats.c +@@ -73,6 +73,7 @@ + double tempf; + char model[64], status[64], battpct[64], utility[64], loadpct[64], + upstemp[64], acfreq[64], *stat, *ptr; ++ char runtime[64]; + int i; + + strcpy (monhost, MONHOST); /* default host */ +@@ -149,6 +150,7 @@ + + printf ("</TR>\n"); + ++#if 0 + printf ("<TR><TD BGCOLOR=\"#FFFFFF\"><PRE>\n"); + + /* TODO: handle self tests */ +@@ -156,6 +158,7 @@ + /* printf ("Last UPS Self Test: Not Available\n"); */ + /* printf (" Last Test Date: Not Available\n"); */ + printf ("</PRE></TD></TR>\n"); ++#endif + + printf ("<TR><TD BGCOLOR=\"#FFFFFF\"><PRE>\n"); + +@@ -173,6 +176,9 @@ + + if (getupsvar (monhost, "acfreq", acfreq, sizeof(acfreq)) > 0) + printf (" Output Freq: %s Hz\n", acfreq); ++ ++ if (getupsvar (monhost, "runtime", runtime, sizeof(runtime)) > 0) ++ printf (" Runtime: %s\n", runtime); + + printf ("</PRE><P>\n"); + printf ("<CENTER>Network UPS Tools upsstats %s</CENTER>\n", UPS_VERSION); |