aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_mrtgtraf.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-11-12 05:41:28 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-11-12 05:41:28 +0000
commit7626b3413d1d84aa1768ad47626d044cf3f2791a (patch)
tree18830e8e2061fdcdb1760d92d772fc96470dbfeb /plugins/check_mrtgtraf.c
parenta28ef8e438f4d45e6f3b1747a247b21d3e8d1482 (diff)
downloadmonitoring-plugins-7626b3413d1d84aa1768ad47626d044cf3f2791a.tar.gz
clean up compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@766 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mrtgtraf.c')
-rw-r--r--plugins/check_mrtgtraf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index 8cc6ec3a..cdb50f31 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -175,18 +175,18 @@ main (int argc, char **argv)
result = STATE_WARNING;
}
- asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s\n"),
+ asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n"),
(use_average == TRUE) ? _("Avg") : _("Max"), adjusted_incoming_rate,
incoming_speed_rating, (use_average == TRUE) ? _("Avg") : _("Max"),
adjusted_outgoing_rate, outgoing_speed_rating,
- perfdata("in", adjusted_incoming_rate, incoming_speed_rating,
- incoming_warning_threshold, incoming_warning_threshold,
- incoming_critical_threshold, incoming_critical_threshold,
- TRUE, 0, TRUE, incoming_speed_rating),
- perfdata("in", adjusted_outgoing_rate, outgoing_speed_rating,
- outgoing_warning_threshold, outgoing_warning_threshold,
- outgoing_critical_threshold, outgoing_critical_threshold,
- TRUE, 0, TRUE, outgoing_speed_rating));
+ perfdata("in", (long) adjusted_incoming_rate, incoming_speed_rating,
+ (int) incoming_warning_threshold, (long) incoming_warning_threshold,
+ (int) incoming_critical_threshold, (long) incoming_critical_threshold,
+ TRUE, 0, TRUE, (long) incoming_speed_rating),
+ perfdata("in", (long) adjusted_outgoing_rate, outgoing_speed_rating,
+ (int) outgoing_warning_threshold, (long) outgoing_warning_threshold,
+ (int) outgoing_critical_threshold, (long) outgoing_critical_threshold,
+ TRUE, 0, TRUE, (long) outgoing_speed_rating));
printf (_("Traffic %s - %s\n"), state_text(result), error_message);