From 03485a8d05aa63dadb29001eac8593925db00b42 Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Wed, 6 Nov 2013 15:25:23 +0100 Subject: Behind #define LOGGING: Correct usage of now() to replacement unix_time(). --- toxcore/Messenger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/Messenger.c') diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index c73161d3..659c837b 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1806,10 +1806,10 @@ void do_messenger(Messenger *m) #ifdef LOGGING - if (now() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) { + if (unix_time() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) { loglog(" = = = = = = = = \n"); - lastdump = now(); + lastdump = unix_time(); uint32_t client, last_pinged; for (client = 0; client < LCLIENT_LIST; client++) { -- cgit v1.2.3