stratum, 6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-02-11 10:24:57 +01:00
parent fa0b168ad3
commit f2d0d1ca94

View File

@ -47,7 +47,7 @@ func Start() {
status = "Error" status = "Error"
} else { } else {
rootdisp = resp.RootDispersion.Seconds() * 1000 rootdisp = resp.RootDispersion.Seconds() * 1000
stratum = resp.Stratum stratum = int(resp.Stratum)
} }
message.Variables["rootdisp"] = variable_t { message.Variables["rootdisp"] = variable_t {
@ -60,7 +60,7 @@ func Start() {
message.Variables["stratum"] = variable_t { message.Variables["stratum"] = variable_t {
Label: "stratum", Label: "stratum",
Variable: "", Variable: "",
Value: strconv.FormatUint(uint64(stratum), 10), Value: strconv.Itoa(stratum),
Unit: "ms", Unit: "ms",
Status: status, Status: status,
} }