summaryrefslogtreecommitdiff
path: root/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
blob: 7443d87e0836a977200e65268e4328f28e91d6a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- plugins/check_mrtg.c.orig	Mon May 24 22:29:35 2004
+++ plugins/check_mrtg.c	Mon May 24 22:29:52 2004
@@ -338,10 +338,10 @@
 					usage("Invalid variable number\n");
 				break;
       case 'w': /* critical time threshold */
-				value_warning_threshold=strtoul(argv[5],NULL,10);
+				value_warning_threshold=strtoul(optarg,NULL,10);
 				break;
       case 'c': /* warning time threshold */
-				value_critical_threshold=strtoul(argv[6],NULL,10);
+				value_critical_threshold=strtoul(optarg,NULL,10);
 				break;
       case 'l': /* label */
 				value_label=optarg;