mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
add detailed metrics in slow operations
This commit is contained in:
parent
4a7ddc9d22
commit
e20a21c35f
@ -552,7 +552,7 @@ impl LogSyncManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
metrics::STORE_PUT_TX_SPEED_IN_BYTES
|
metrics::STORE_PUT_TX_SPEED_IN_BYTES
|
||||||
.update((tx.size / start_time.elapsed().as_millis() as u64) as usize);
|
.update((tx.size * 1000 / start_time.elapsed().as_micros() as u64) as usize);
|
||||||
metrics::STORE_PUT_TX.update_since(start_time);
|
metrics::STORE_PUT_TX.update_since(start_time);
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user