Commit 5625a4b5 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

syntax bug

parent 63601db8
......@@ -64,7 +64,7 @@ if ( $doc->{error} ){
printf "%-8s %-25s %-25s %s\n", "Time", "From", "To", "Path";
foreach $r( @{ $doc->{hits}{hits} } ){
my $src= $r->{_source};
my $time= `date -d $src->{timestamp} +%T`;
my $time= `date -d \@$src->{timestamp} +%T`;
chomp($time);
printf "%-8s %-25s %-25s %s\n", $time, $src->{from}, $src->{to}, $src->{path};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment