From 5209b654827d2942487a88198546cf7947eeec2e Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Thu, 16 Jul 2015 13:07:19 +0200 Subject: [PATCH] Fix bug where -p was ignored refs #9637 --- plugins/check_ping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;