summaryrefslogtreecommitdiff
path: root/internal/schedule/stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/schedule/stats.go')
-rw-r--r--internal/schedule/stats.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/schedule/stats.go b/internal/schedule/stats.go
index bf5a12c..77271fe 100644
--- a/internal/schedule/stats.go
+++ b/internal/schedule/stats.go
@@ -5,6 +5,7 @@ import (
"log"
"os"
"path/filepath"
+ "strings"
"time"
"codeberg.org/snonux/gos/internal/entry"
@@ -76,7 +77,10 @@ func (s *stats) gatherPostedStats(dir string, lookbackTime time.Time) error {
if ent.Time.After(newest) {
newest = ent.Time
}
- s.posted++
+ // Ignore .now.
+ if !strings.Contains(file.Name(), ".now.") {
+ s.posted++
+ }
return nil
})
if err != nil {