mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
Fix to work with golang 1.16
This commit is contained in:
parent
b97c588660
commit
82b10b365e
@ -121,6 +121,7 @@ func (m *GpfsCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* requires go 1.17
|
||||||
// unix epoch in microseconds
|
// unix epoch in microseconds
|
||||||
timestampInt, err := strconv.ParseInt(key_value["_t_"]+key_value["_tu_"], 10, 64)
|
timestampInt, err := strconv.ParseInt(key_value["_t_"]+key_value["_tu_"], 10, 64)
|
||||||
timestamp := time.UnixMicro(timestampInt)
|
timestamp := time.UnixMicro(timestampInt)
|
||||||
@ -130,6 +131,8 @@ func (m *GpfsCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {
|
|||||||
key_value["_t_"]+key_value["_tu_"], err.Error())
|
key_value["_t_"]+key_value["_tu_"], err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
timestamp := time.Now()
|
||||||
|
|
||||||
// bytes read
|
// bytes read
|
||||||
bytesRead, err := strconv.ParseInt(key_value["_br_"], 10, 64)
|
bytesRead, err := strconv.ParseInt(key_value["_br_"], 10, 64)
|
||||||
|
Loading…
Reference in New Issue
Block a user