dpinger: add details to status, so we can easily reproduce the outcome. for https://github.com/opnsense/core/issues/3759

This commit is contained in:
Ad Schellevis 2019-10-13 12:52:21 +02:00
parent bb7557d38f
commit d5bd3a6cb7

View File

@ -380,6 +380,7 @@ function dpinger_status($verbose = false)
'stddev' => sprintf('%0.1f ms', empty($r['latency_stddev']) ? 0.0 : round($r['latency_stddev'], 1)),
'loss' => sprintf('%0.1f %%', empty($r['loss']) ? 0.0 : round($r['loss'], 1)),
'status' => $r['status'],
'details' => array_merge($r, $settings),
'name' => $gwname,
);
}