summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 561a3e8)
raw | patch | inline | side by side (parent: 561a3e8)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 10 Nov 2007 17:37:11 +0000 (17:37 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 10 Nov 2007 17:37:11 +0000 (17:37 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1822 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ntp.c | patch | blob | history |
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index df6e02f851a3c81faf65e636e0e87940fd8a6a7e..2854161687cbce9945b9d8e7a3f22a24ab15b390 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
avg_offset+=servers[best_index].offset[j];
}
avg_offset/=servers[best_index].num_responses;
- *stratum = servers[best_index].stratum;
+ /* Stratum sent in normal packets is ingreased by 1 (i.e. stratum that
+ * would be displayed if we were a server) so we decrease it */
+ *stratum = servers[best_index].stratum - 1;
}
/* cleanup */