diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2016-10-26 07:01:15 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2016-10-26 07:01:15 +0000 |
commit | 0d3326fbeb7eff730cc0d4253c8f25ded5bf996f (patch) | |
tree | 710f867c920b2a518aed3b18d184cb6484fed241 /net/rtg/files/patch-etc-95.php | |
parent | lang/pypy(3): update package description. (diff) |
Improve RTG port
Summary:
Add 'rtg' user and group in UIDs/GIDs.
Use daemon(8) to daemonize rtgpoll.
Add prestart commands to set correct permissions for RTG's files.
Reviewers: swills, allanjude, xmj, andrew.fengler_scaleengine.com, #contributor_reviewers_ports, matthew
Reviewed By: #contributor_reviewers_ports, matthew
Subscribers: matthew, mat
Differential Revision: https://reviews.freebsd.org/D7486
Notes
Notes:
svn path=/head/; revision=424678
Diffstat (limited to 'net/rtg/files/patch-etc-95.php')
-rw-r--r-- | net/rtg/files/patch-etc-95.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/rtg/files/patch-etc-95.php b/net/rtg/files/patch-etc-95.php index e6213745d75b..9831f54f01cc 100644 --- a/net/rtg/files/patch-etc-95.php +++ b/net/rtg/files/patch-etc-95.php @@ -1,5 +1,5 @@ ---- etc/95.php.orig 2014-06-22 15:27:55.587467922 +0100 -+++ etc/95.php 2014-06-22 15:28:47.947474934 +0100 +--- etc/95.php.orig 2003-09-24 20:40:57 UTC ++++ etc/95.php @@ -4,10 +4,8 @@ print "<HTML>\n<!-- RTG Version $VERSION -->\n<HEAD>\n"; @@ -12,7 +12,7 @@ if ($PHP_SELF == "") { $PHP_SELF = "95.php"; -@@ -50,8 +48,8 @@ +@@ -50,8 +48,8 @@ function int_stats($statement, $dbc) { $max = $avg = $nintyfifth = 0; $rate = array(); @@ -23,7 +23,7 @@ $counter = $selectRow->counter; $sample_secs = $selectRow->unixtime; $total += $counter; -@@ -89,9 +87,8 @@ +@@ -89,9 +87,8 @@ Report: 95th percentile<BR> <?php echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"GET\">\n"; if (($bt || $smonth)) { @@ -35,7 +35,7 @@ /* Format into GNU date syntax */ if ($bt == "") { $bt = strtotime("$syear-$smonth-$sday $shour:$smin:00"); -@@ -104,11 +101,11 @@ +@@ -104,11 +101,11 @@ Report: 95th percentile<BR> $range="dtime>FROM_UNIXTIME($bt) AND dtime<=FROM_UNIXTIME($et)"; $selectQuery="SELECT id, name, description, rid FROM interface WHERE description LIKE \"%$customer%\""; @@ -50,7 +50,7 @@ $ids[$selectRow->id] = $selectRow->name; $rids[$selectRow->id] = $selectRow->rid; $desc[$selectRow->id] = $selectRow->description; -@@ -127,8 +124,8 @@ +@@ -127,8 +124,8 @@ Report: 95th percentile<BR> foreach($ids as $iid=>$name) { $selectQuery="SELECT name FROM router WHERE rid=$rids[$iid]"; @@ -61,7 +61,7 @@ $router = $selectRow->name; if ($yellow) $yellow = 0; -@@ -201,7 +198,7 @@ +@@ -201,7 +198,7 @@ Report: 95th percentile<BR> echo "<P><INPUT TYPE=\"SUBMIT\" VALUE=\"Ok\">"; } |