mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-07-03 20:13:48 +02:00
Read written bytes instead of read bytes
This commit is contained in:
parent
0a2a85f2ce
commit
aa6181a018
@ -278,7 +278,7 @@ func (m *GpfsCollector) Read(interval time.Duration, output chan lp.CCMessage) {
|
||||
output <- y
|
||||
}
|
||||
if m.config.SendBandwidths {
|
||||
if lastBytesWritten := m.lastState[filesystem].bytesRead; lastBytesWritten >= 0 {
|
||||
if lastBytesWritten := m.lastState[filesystem].bytesWritten; lastBytesWritten >= 0 {
|
||||
bwWrite := float64(bytesWritten-lastBytesWritten) / timeDiff
|
||||
if y, err :=
|
||||
lp.NewMessage(
|
||||
|
Loading…
x
Reference in New Issue
Block a user