Project

General

Profile

Bug #1155 ยป status_gateways.diff

Andrea Soster, 01/03/2011 09:27 AM

View differences:

status_gateways.php 2011-01-03 14:58:31.000000000 +0100
100 100
						$online = gettext("Offline");
101 101
						$bgcolor = "lightcoral";
102 102
					} elseif (stristr($status['status'], "loss")) {
103
						$online = gettext("Warning, Packetloss");
103
						$online = gettext("Warning, Packetloss").': '.$status['loss'];
104 104
						$bgcolor = "khaki";
105 105
					} elseif (stristr($status['status'], "delay")) {
106
						$online = gettext("Warning, Latency");
106
						$online = gettext("Warning, Latency").': '.$status['delay'];
107 107
						$bgcolor = "khaki";
108 108
					} elseif ($status['status'] == "none") {
109 109
						$online = gettext("Online");
......
114 114
					$bgcolor = "lightgray";
115 115
				}
116 116
				echo "<tr><td bgcolor=\"$bgcolor\" > $online </td><td>";
117
				$lastchange = $gateway['lastcheck'];
117
				$lastchange = $gateways_status[$gname]['lastcheck'];
118 118
				if(!empty($lastchange)) {
119 119
					$lastchange = explode(" ", $lastchange);
120 120
					array_shift($lastchange);
    (1-1/1)