Permalink
Browse files

typo

  • Loading branch information...
1 parent 343cadd commit f51531aece99ea35e818c21f119f7a82594898aa @bcui6611 bcui6611 committed Aug 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 diskqueue_stats.py
View
@@ -120,15 +120,15 @@ def run(self, accessor, scale, threshold=None):
elif accessor["type"] == "number" and delta > threshold_val["number"]["high"]:
symptom = accessor["symptom"].format(util.number_label(delta), util.number_label(threshold_val["number"]["high"]))
num_error.append({"node":active[0], "value": symptom})
- res.append((active[0], int(delta)))
+ res.append((active[0], util.number_label(delta)))
elif accessor["type"] == "percentage" and ratio > threshold_val["percentage"]["low"]:
symptom = accessor["symptom"].format(util.pretty_float(ratio), threshold_val["percentage"]["low"])
num_warn.append({"node":active[0], "value": symptom})
res.append((active[0], util.pretty_float(ratio) + "%"))
elif accessor["type"] == "number" and delta > threshold_val["number"]["low"]:
symptom = accessor["symptom"].format(util.number_label(delta), util.number_label(threshold_val["number"]["low"]))
num_warn.append({"node":active[0], "value": symptom})
- res.append((active[0], int(delta)))
+ res.append((active[0], util.number_label(delta)))
active_total += active[1]
replica_total += replica[1]
if active_total > 0:
@@ -259,7 +259,7 @@ def run(self, accessor, scale, threshold=None):
"high" : 100000,
},
},
- "symptom" : "Number of backlog items '{0}%' is above threshold '{1}%'",
+ "symptom" : "Number of backlog items '{0}' is above threshold '{1}'",
"formula" : "Avg(ep_tap_total_total_backlog_size) > threshold",
}
],

0 comments on commit f51531a

Please sign in to comment.