summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/data.c b/data.c
index 0d497bf..92e7f45 100644
--- a/data.c
+++ b/data.c
@@ -1031,6 +1031,12 @@ void purge(snac *snac)
1031 time_t mt = time(NULL) - tpd * 24 * 3600; 1031 time_t mt = time(NULL) - tpd * 24 * 3600;
1032 char *p, *v; 1032 char *p, *v;
1033 1033
1034 /* purge days set to 0? disable purging */
1035 if (tpd == 0) {
1036 /* well, enjoy your data drive exploding */
1037 return;
1038 }
1039
1034 xs *t_spec = xs_fmt("%s/timeline/" "*.json", snac->basedir); 1040 xs *t_spec = xs_fmt("%s/timeline/" "*.json", snac->basedir);
1035 xs *t_list = xs_glob(t_spec, 0, 0); 1041 xs *t_list = xs_glob(t_spec, 0, 0);
1036 1042