logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit c194726ec3c50fdbac7de96e09df2f026370b679
parent f3d0e1cf91bf96a0221e739fbe68a49d97de2d29
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed, 24 Jun 2015 21:28:32 +0200

Passing NULL as argument for time

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

diff --git a/src/logswan.c b/src/logswan.c @@ -160,7 +160,7 @@ int main (int argc, char *argv[]) { runtime = (double)(end - begin) / CLOCKS_PER_SEC; /* Generate timestamp */ - time_t now = time(0); + time_t now = time(NULL); strftime(timeStamp, 20, "%Y-%m-%d %H:%M:%S", localtime(&now)); /* Printing results */