aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_mrtg.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mrtg.c')
-rw-r--r--plugins/check_mrtg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 5924f179..e1382644 100644
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
@@ -140,9 +140,9 @@ main (int argc, char **argv)
asprintf (&message, "%s. %s = %lu %s|%s",
(use_average == TRUE) ? _("Avg") : _("Max"),
label, rate, units,
- perfdata(label, rate, units,
- value_warning_threshold, value_warning_threshold,
- value_critical_threshold, value_critical_threshold,
+ perfdata(label, (long) rate, units,
+ (int) value_warning_threshold, (long) value_warning_threshold,
+ (int) value_critical_threshold, (long) value_critical_threshold,
0, 0, 0, 0));
}