From d64b1b0379e78ab58ba0c69db3ce4006fd2e28a9 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Tue, 12 Feb 2019 16:15:17 -0800 Subject: [PATCH] dhcp-lease: Comment out some superfluous output. --- dhcp-lease-list.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dhcp-lease-list.pl b/dhcp-lease-list.pl index 56f863f1..11119f89 100755 --- a/dhcp-lease-list.pl +++ b/dhcp-lease-list.pl @@ -107,11 +107,12 @@ sub process_leases() { # skip outdated lines next if ($opt_keep eq 'active' and $3 lt $gm_now); - if ($counter) { - my $percent = (($counter / $total_leases)*100); - printf "Processing: %2d%% complete\r", $percent; - ++$counter; - } + # I like 'human' output, but this part is not helpful when parsing that human output by another script. --Ben + #if ($counter) { + # my $percent = (($counter / $total_leases)*100); + # printf "Processing: %2d%% complete\r", $percent; + # ++$counter; + #} my $hostname = "-NA-"; if ($6) {