From 57dd704a2fbe1cc0a814dd5caf32ec4611332a2e Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 25 Jan 2010 18:30:47 +0000 Subject: [PATCH] nicely format latest entries in MongoDB --- lib/PXElator/httpd.pm | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/PXElator/httpd.pm b/lib/PXElator/httpd.pm index 3bca985..99ae21a 100644 --- a/lib/PXElator/httpd.pm +++ b/lib/PXElator/httpd.pm @@ -18,6 +18,7 @@ use File::Slurp; #use JSON; use IO::Socket::INET; use Regexp::Common qw/net/; +use POSIX qw(strftime); our $title; @@ -76,8 +77,8 @@ qq{ brctl ip | -store -query +MongoDB +latest | nmap client @@ -269,7 +270,7 @@ warn "XXX pids = ", dump( $daemons::pids ); | ; - } elsif ( $path =~ m{^/store/query} ) { + } elsif ( $path =~ m{^/store/latest} ) { print $client ok , qq|