fixed: NTP stratum 16 means unsynchronized (#5436)

~ Changed: Message for the NTP discovery and polling altered. A stratum of 16
is not 'Insane' its actually not in sync as per the RFC 5909 specification.
See: https://tools.ietf.org/html/rfc5905#page-21 Fig. 11 for reference.
This commit is contained in:
Ant Kenworthy 2017-01-14 16:52:06 +00:00 committed by Tony Murray
parent 0ab2f18f7d
commit 46d75fefac
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ if (is_null($cntpPeersVarEntry)) {
// Set the status, 16 = Bad
if ($result['stratum'] == 16) {
$result['status'] = 2;
$result['error'] = 'NTP Stratum is Insane';
$result['error'] = 'NTP is not in sync';
} else {
$result['status'] = 0;
$result['error'] = '';

View File

@ -45,7 +45,7 @@ if (count($components > 0)) {
// Set the status, 16 = Bad
if ($array['stratum'] == 16) {
$array['status'] = 2;
$array['error'] = 'NTP Stratum is Insane';
$array['error'] = 'NTP is not in sync';
} else {
$array['status'] = 0;
$array['error'] = '';