summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-08-17 13:53:58 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-08-17 13:53:58 +0200
commit44f3e1486fb5fd45644683af83aaaf27047e4250 (patch)
treef46347575a37a90234233fd504f9a8173811d57d /channel.c
parent27bf4f8c64eac6d969116e4c6ed8584b52badb46 (diff)
Count lines per quarter hour for channels and users.
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 45bbb71..c69cf2b 100644
--- a/channel.c
+++ b/channel.c
@@ -23,6 +23,7 @@ struct channel_t *channel_add(const char *name) {
struct channel_t *channel = &channels[channel_count-1];
channel->name = strdup(name);
channel->files = NULL;
+ memset(channel->hours, 0, 24*4 * sizeof(unsigned long));
return channel;
}