ajrockefeller / openfpc

Automatically exported from code.google.com/p/openfpc
0 stars 0 forks source link

Feature - Date/Timestamp on openfpc-client output #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Adde a nicely formatted date/time stamp on the openfpc client output (nice if 
writing to a log file to see when a pcap was requested etc)

Code is:

> I added the following to openfpc-client.pl
>
> use POSIX qw/strftime/;
>
>
> my $nicetime=strftime('%D %T',localtime);
>
> Then just added "date: $nicetime" to the result subroutine.

Original issue reported on code.google.com by matt.new...@gmail.com on 16 May 2011 at 12:58

GoogleCodeExporter commented 8 years ago
Fixed some time back. Not sure why I didn't close this bug.

E.g. from Revision 328.

lward@zorro:~/code/openfpc$ ./openfpc-client --src-addr=192.168.42.1 --last 60 
-w /tmp/foo
* Reading configuration from /home/lward/.openfpc-client.rc

   * openfpc-client 0.6 * 
   Part of the OpenFPC project

#####################################
Date    : Fri Jul  1 09:02:05 2011
Filename: /tmp/foo.pcap 
Size    : 121K
MD5     : 055d84a2051557d11602f09ee23ef2a3
lward@zorro:~/code/openfpc$ 

Original comment by leon.j.w...@gmail.com on 1 Jul 2011 at 8:03