mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-07-04 12:33:49 +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
|
output <- y
|
||||||
}
|
}
|
||||||
if m.config.SendBandwidths {
|
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
|
bwWrite := float64(bytesWritten-lastBytesWritten) / timeDiff
|
||||||
if y, err :=
|
if y, err :=
|
||||||
lp.NewMessage(
|
lp.NewMessage(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user