stratum, 6
This commit is contained in:
parent
fa0b168ad3
commit
f2d0d1ca94
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user