[rancid] [PATCH] nxrancid ShowEnvPower oscillating
heasley
heas at shrubbery.net
Fri Jun 15 00:29:58 UTC 2012
How about the following instead:
Index: nxrancid.in
===================================================================
--- nxrancid.in (revision 2494)
+++ nxrancid.in (working copy)
@@ -375,14 +375,8 @@
#------- ------------------- ----------- ----------- --------------
#2 NURBURGRING N/A 573 W Powered-Up
#fan1 N/A 720 W Powered-Up
- if (/Actual +Total/ ||
- /Actual +Power/ ||
- /Draw +Allocated/ ||
- /Output +Capacity/ ||
- /(\(Watts \)) +\g{-1}/ ||
- /(-----------) +\g{-1}/ ||
- /(\d+ W|N\/A) +\d+ W/) {
- substr($_, 30, 13, "");
+ if ( /(.*) +(\d+ W)( +\d+ W.*)/) {
+ $_ = sprintf("%s%-". length($2)."s%s\n", $1, "", $3);
}
/actual draw/ && next; # Drop changing total power output.
More information about the Rancid-discuss
mailing list