ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit 264bcd8a6b7377f5e05600dc55d37f6bca0caa3e
parent bd3ed5738dcb15c91ef123bb246aa9f30144b826
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon,  4 Sep 2000 19:35:11 +0000

fix in print_time_absolute for tm_mon (months are numbered 0 - 11)

Diffstat:
Mngrep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ngrep.c b/ngrep.c @@ -656,7 +656,7 @@ void print_time_absolute(struct pcap_pkthdr *h) { struct tm *t = localtime(&h->ts.tv_sec); printf("%02d/%02d/%02d %02d:%02d:%02d.%06d ", - t->tm_year+1900, t->tm_mon, t->tm_mday, t->tm_hour, + t->tm_year+1900, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, h->ts.tv_usec); }