Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Step a stats period with one function
Diffstat (limited to '')
-rw-r--r--source/ui-stats.h5
1 file changed, 2 insertions, 3 deletions
diff --git a/source/ui-stats.h b/source/ui-stats.h
index 325e082..1cd0b9d 100644
--- a/source/ui-stats.h
+++ b/source/ui-stats.h
@@ -20,9 +20,8 @@ struct cgit_period {
// Move a tm back to the first day of the period it falls in.
void (*trunc)(struct tm *tm);
- // Step a truncated tm one whole period back or forward.
- void (*dec)(struct tm *tm);
- void (*inc)(struct tm *tm);
+ // Step a truncated tm n whole periods, back when n is negative.
+ void (*step)(struct tm *tm, int n);
// Label the period a tm falls in. The buffer is reused, so a caller
// that keeps a label copies it.