Revision 5af7eba3
Added by Jim Pingle almost 15 years ago
usr/local/www/includes/functions.inc.php | ||
---|---|---|
37 | 37 |
$data .= lookup_gateway_ip_by_name($gname) . ","; |
38 | 38 |
if ($gateways_status[$gname]) { |
39 | 39 |
$gws = $gateways_status[$gname]; |
40 |
$data .= $gws['delay'] . ","; |
|
41 |
$data .= $gws['loss'] . ","; |
|
42 |
switch(strtolower($gws['status'])) { |
|
40 |
switch(strtolower($gws['status'])) { |
|
43 | 41 |
case "none": |
44 | 42 |
$online = "Online"; |
45 | 43 |
$bgcolor = "lightgreen"; |
... | ... | |
64 | 62 |
$online = "Gathering data"; |
65 | 63 |
$bgcolor = "lightgray"; |
66 | 64 |
} |
65 |
$data .= ($online == "Gathering data") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},"; |
|
67 | 66 |
$data .= "<table><tr><td bgcolor=\"$bgcolor\" > $online </td></td></tr></table>"; |
68 | 67 |
} |
69 | 68 |
return $data; |
Also available in: Unified diff
Fix AJAX update of gateway status when the status is "Gathering Data".