summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 28354b0..c73562b 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -229,13 +229,14 @@ main (int argc, char **argv)
229 229
230 np_set_args(argc, argv); 230 np_set_args(argc, argv);
231 231
232 time(&current_time);
233
232 if (process_arguments (argc, argv) == ERROR) 234 if (process_arguments (argc, argv) == ERROR)
233 usage4 (_("Could not parse arguments")); 235 usage4 (_("Could not parse arguments"));
234 236
235 if(calculate_rate) { 237 if(calculate_rate) {
236 if (!strcmp(label, "SNMP")) 238 if (!strcmp(label, "SNMP"))
237 label = strdup("SNMP RATE"); 239 label = strdup("SNMP RATE");
238 time(&current_time);
239 i=0; 240 i=0;
240 previous_state = np_state_read(); 241 previous_state = np_state_read();
241 if(previous_state!=NULL) { 242 if(previous_state!=NULL) {