diff options
author | Coren[m] <Break@Ocean> | 2013-11-06 15:25:23 +0100 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-11-06 15:26:08 +0100 |
commit | 03485a8d05aa63dadb29001eac8593925db00b42 (patch) | |
tree | 530412a2ead4f6cefe95f32247e17a98e919d2c3 /toxcore/Messenger.c | |
parent | 71f7a4940247db6fd1b6f74418fd775f0f4c2bd3 (diff) |
Behind #define LOGGING: Correct usage of now() to replacement unix_time().
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
1806 | 1806 | ||
1807 | #ifdef LOGGING | 1807 | #ifdef LOGGING |
1808 | 1808 | ||
1809 | if (now() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) { | 1809 | if (unix_time() > lastdump + DUMPING_CLIENTS_FRIENDS_EVERY_N_SECONDS) { |
1810 | loglog(" = = = = = = = = \n"); | 1810 | loglog(" = = = = = = = = \n"); |
1811 | 1811 | ||
1812 | lastdump = now(); | 1812 | lastdump = unix_time(); |
1813 | uint32_t client, last_pinged; | 1813 | uint32_t client, last_pinged; |
1814 | 1814 | ||
1815 | for (client = 0; client < LCLIENT_LIST; client++) { | 1815 | for (client = 0; client < LCLIENT_LIST; client++) { |