summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el
index 26550bf..7b17239 100644
--- a/gnosis-dashboard.el
+++ b/gnosis-dashboard.el
@@ -101,8 +101,9 @@ Skips days where no note was reviewed."
(let ((total 0)
(entries (gnosis-dashboard-year-stats)))
(cl-loop for entry in entries
+ when (not (= entry 0))
do (setq total (+ total entry)))
- (/ total (length (remove 0 entries)))))
+ (/ total (max (length (remove 0 entries)) 1))))
;; TODO: Add more conds & faces
(defun gnosis-dashboard--graph-propertize (string num)