aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-11-08 06:56:30 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-11-08 06:56:45 +0100
commit6bbe8aca2bcd6ea5ec2485b7d9351459da99b86c (patch)
tree5f2a0f64660e768be8d16f51ee38e81cd2803d4d
parentd46305d7ab1ccd9db9dca4bf224682940a48e2f7 (diff)
downloadwdmtg-6bbe8aca2bcd6ea5ec2485b7d9351459da99b86c.tar.gz
wdmtg-6bbe8aca2bcd6ea5ec2485b7d9351459da99b86c.tar.xz
wdmtg-6bbe8aca2bcd6ea5ec2485b7d9351459da99b86c.zip
Mark a future consideration
-rw-r--r--wdmtg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wdmtg.c b/wdmtg.c
index d958968..a6cae89 100644
--- a/wdmtg.c
+++ b/wdmtg.c
@@ -287,6 +287,8 @@ async_queue_source_new(void)
static void
push_event(void) {
struct event *event = g_slice_new0(struct event);
+ // TODO: what if time goes backwards? Think of that while generating
+ // the table for aggregation. At least timezones aren't a problem.
event->timestamp = g_get_real_time();
event->title = g_strdup(gen.current_title);
event->class = g_strdup(gen.current_class);