mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
system: add latency_avg as sanity check for running dpinger; closes #10937
The check was introduced in 0df1c0d so there's no technical background
to take into account. Indeed, latency_avg is probably the reading that
would least likely be 0 in this case.
Suggested by: @mbccd
This commit is contained in:
@@ -350,7 +350,7 @@ function dpinger_status()
|
||||
fclose($fp);
|
||||
|
||||
list(, $latency_avg, $latency_stddev, $loss) = explode(' ', preg_replace('/\n/', '', $dinfo));
|
||||
if ($latency_stddev == '0' && $loss == '0') {
|
||||
if ($latency_avg == '0' && $latency_stddev == '0' && $loss == '0') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user