From: Jean Flach Date: Thu, 16 Jul 2015 11:07:19 +0000 (+0200) Subject: Fix bug where -p was ignored X-Git-Tag: v2.4.0~499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1bd76d7597397231388c81df96b167b4ab94e05;p=icinga2 Fix bug where -p was ignored refs #9637 --- diff --git a/plugins/check_ping.cpp b/plugins/check_ping.cpp index 96cc37e78..cde32f25b 100644 --- a/plugins/check_ping.cpp +++ b/plugins/check_ping.cpp @@ -194,8 +194,8 @@ INT parseArguments(INT ac, WCHAR **av, po::variables_map& vm, printInfoStruct& p if (vm.count("timeout")) printInfo.timeout = vm["timeout"].as(); - if (vm.count("count")) - printInfo.num = vm["count"].as(); + if (vm.count("packets")) + printInfo.num = vm["packets"].as(); if (vm.count("-6")) printInfo.ipv4 = FALSE;