aboutsummaryrefslogtreecommitdiff
path: root/src/stats.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 15:40:53 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 15:40:53 +0100
commit004dfddca383394426f6d191a43c9a0131cdee34 (patch)
tree6f23a82122f02c63e7830dfa812e017f6c80d837 /src/stats.h
parent14ca99b22469808642034813156281a203cfee5e (diff)
stats: use GTimer instead of time(NULL)
time(NULL) shows the wrong results when the machine's clock is changed.
Diffstat (limited to 'src/stats.h')
-rw-r--r--src/stats.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stats.h b/src/stats.h
index 0c82cb16..c783eb05 100644
--- a/src/stats.h
+++ b/src/stats.h
@@ -19,10 +19,12 @@
#ifndef MPD_STATS_H
#define MPD_STATS_H
+#include <glib.h>
+
struct client;
struct stats {
- unsigned long start_time;
+ GTimer *timer;
/** number of song files in the music directory */
unsigned song_count;
@@ -42,6 +44,8 @@ extern struct stats stats;
void stats_global_init(void);
+void stats_global_finish(void);
+
void stats_update(void);
int stats_print(struct client *client);