FreeBSD Bugzilla – Attachment 5277 Details for
Bug 12737
regex for checking load avergaes is wrong for majordomo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.50 KB, created by
Andrew Stevenson
on 1999-07-21 16:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andrew Stevenson
Created:
1999-07-21 16:10:01 UTC
Size:
1.50 KB
patch
obsolete
>--- patch-ab.orig Wed Sep 10 12:52:44 1997 >+++ patch-ab Thu Jul 22 11:00:39 1999 >@@ -1,5 +1,5 @@ >---- sample.cf.orig Thu Aug 28 00:00:31 1997 >-+++ sample.cf Wed Sep 10 00:56:10 1997 >+--- sample.cf.orig Thu Aug 28 01:00:31 1997 >++++ sample.cf Thu Jul 22 11:00:18 1999 > @@ -6,11 +6,11 @@ > > # $whereami -- What machine am I running on? >@@ -47,9 +47,12 @@ > > # $mailer -- What program and args do I use to send mail to the list? > # $bounce_mailer -- What is used to send mail anywhere else? >-@@ -82,9 +78,9 @@ >+@@ -80,15 +76,15 @@ >+ # high by uncommenting the following lines. THIS ONLY WORKS if your "uptime" >+ # command (usually found in /usr/bin/uptime or /usr/bsd/uptime) > # returns a string like: >- # 5:23pm up 5:51, 9 users, load average: 0.19, 0.25, 0.33 >+-# 5:23pm up 5:51, 9 users, load average: 0.19, 0.25, 0.33 >++# 5:23pm up 5:51, 9 users, load averages: 0.19, 0.25, 0.33 > # > -#$max_loadavg = 10; # Choose the maximum allowed load > +$max_loadavg = 10; # Choose the maximum allowed load >@@ -59,6 +62,11 @@ > #$uptime = `/usr/bsd/uptime` if -x '/usr/bsd/uptime'; # or uptime is over here. > # > #($avg_1_minute, $avg_5_minutes, $avg_15_minutes) = >+-# $uptime =~ /average:\s+(\S+),\s+(\S+),\s+(\S+)/; >++# $uptime =~ /averages:\s+(\S+),\s+(\S+),\s+(\S+)/; >+ # >+ #exit 75 if ($avg_15_minutes >= $max_loadavg); # E_TEMPFAIL >+ # > @@ -190,7 +186,7 @@ > # majordomo has r/w permission to. > # Uses the environment variable TMPDIR, since that's pretty common
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12737
: 5277