From 169a35a0670067fb6502af1cdfadcd139086464c Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 26 Apr 2025 01:32:46 +0300 Subject: [PATCH] Followup to latency aggregation fix --- mon/stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mon/stats.js b/mon/stats.js index ee815785..5c4edfe1 100644 --- a/mon/stats.js +++ b/mon/stats.js @@ -100,7 +100,7 @@ function sum_op_stats(all_osd, prev_stats) { for (const op in sum_diff[type]) { - if (sum_diff[type][op].iops) + if (sum_diff[type][op].lat) { sum_diff[type][op].lat /= sum_diff[type][op].iops; } @@ -298,7 +298,7 @@ function sum_inode_stats(state, prev_stats) for (const op of [ 'read', 'write', 'delete' ]) { const op_st = inode_stats[pool_id][inode_num][op]; - if (op_st.iops) + if (op_st.lat) op_st.lat /= op_st.iops; if (op_st.bps > 0 || op_st.iops > 0) nonzero = true;