diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-13 10:00:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-13 10:00:30 +0200 |
| commit | 7441b51216f6520202b2f6bd2e534a80b64074cc (patch) | |
| tree | d8e28b2bd0c7ef3d164c32d0270aac876cf5380f | |
| parent | 3e20b49cbafbbeff06a8da4e247098ec5210d68d (diff) | |
last month
| -rw-r--r-- | foostats.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/foostats.pl b/foostats.pl index 7cb6b30..50be4f5 100644 --- a/foostats.pl +++ b/foostats.pl @@ -347,7 +347,7 @@ package Foostats::Replicator { for my $proto (qw(gemini web)) { my $count = 0; - for my $date (_last_week_dates()) { + for my $date (_last_month_dates()) { my $dest_file = "${proto}_${date}.$partner_node.json.gz"; $self->replicate_file( @@ -378,11 +378,11 @@ package Foostats::Replicator { say 'done'; } - sub _last_week_dates () { + sub _last_month_dates () { my $today = localtime; my @last_week; - for my $days_ago (0..7) { + for my $days_ago (0..30) { my $date = $today - ($days_ago * 24 * 60 * 60); push @last_week, $date->strftime('%Y%m%d'); } |
