Skip to content

Commit da77fb7

Browse files
committed
fix(apps): Correct illegal filter out condition when topN data size <=0
1 parent e3c8190 commit da77fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl App {
409409
if number > 0 {
410410
GAUGE_HUGE_PARTITION_NUMBER
411411
.with_label_values(&vec![ALL_LABEL])
412-
.sub(self.huge_partition_number.load(Ordering::Relaxed) as i64);
412+
.sub(number as i64);
413413

414414
if let Err(e) = GAUGE_HUGE_PARTITION_NUMBER.remove_label_values(&[&self.app_id]) {
415415
error!(
@@ -771,7 +771,7 @@ impl AppManager {
771771
for idx in 0..limit {
772772
let app = apps[idx];
773773
if app.total_resident_data_size() <= 0 {
774-
break;
774+
continue;
775775
}
776776
GAUGE_TOPN_APP_RESIDENT_BYTES
777777
.with_label_values(&[&app.app_id])

0 commit comments

Comments
 (0)