From 2725001430018fa0786c87096248231e34e6b899 Mon Sep 17 00:00:00 2001 From: Kaspar Wolfisberg Date: Mon, 30 Apr 2018 14:10:20 +0200 Subject: [PATCH] Fix index key to match the time property Fixes xme/hoover#5 fixes xme/hoover#6 --- hoover.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoover.pl b/hoover.pl index d8b5980..f9c0bea 100755 --- a/hoover.pl +++ b/hoover.pl @@ -178,7 +178,7 @@ sub dumpNetworks { } for $key ( keys %detectedSSID) { - my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($detectedSSID{$key}[2]); + my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($detectedSSID{$key}[3]); my $lastSeen = sprintf("%04d/%02d/%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec); print STDOUT sprintf("!! %-20s %-30s %10s %-20s\n", $detectedSSID{$key}[2], $detectedSSID{$key}[0], $detectedSSID{$key}[1], $lastSeen);