Commit 21b428d3 authored by Franco Fichtner's avatar Franco Fichtner

gatways: remove last check, it's wrong and not too helpful

parent ae4dfa67
......@@ -429,7 +429,6 @@ function return_gateways_status($byname = false)
$status[$target]['monitorip'] = $info[0];
$status[$target]['srcip'] = $info[1];
$status[$target]['name'] = $info[2];
$status[$target]['lastcheck'] = $info[5] ? date('r', $info[5]) : date('r');
$status[$target]['delay'] = empty($info[6]) ? "0ms" : round($info[6], 1) ."ms" ;
$status[$target]['loss'] = empty($info[7]) ? "0.0%" : round($info[7], 1) . "%";
$status[$target]['status'] = trim($info[8]);
......@@ -463,7 +462,6 @@ function return_gateways_status($byname = false)
if ($target == "none") {
$target = $gwitem['name'];
$status[$target]['name'] = $gwitem['name'];
$status[$target]['lastcheck'] = date('r');
$status[$target]['delay'] = "0.0ms";
$status[$target]['loss'] = "100.0%";
$status[$target]['status'] = "down";
......@@ -471,7 +469,6 @@ function return_gateways_status($byname = false)
$status[$target]['monitorip'] = $tgtip;
$status[$target]['srcip'] = $srcip;
$status[$target]['name'] = $gwitem['name'];
$status[$target]['lastcheck'] = date('r');
$status[$target]['delay'] = "0.0ms";
$status[$target]['loss'] = "0.0%";
$status[$target]['status'] = "none";
......
......@@ -111,9 +111,6 @@ include("head.inc");
<i class="fa fa-globe"></i>
<?=$online;?>
</div>
<div class="hidden-xs">
<?=!empty($gateways_status[$gname]['lastcheck']) ? gettext("Last check:") . '<br />' . $gateways_status[$gname]['lastcheck'] : "";?>
</div>
</td>
<td>
<?=$gateway['descr']; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment