summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-01-08 23:47:08 +0200
committerPaul Buetow <paul@buetow.org>2025-01-08 23:47:08 +0200
commitf5880492c45c6b6c9a9bc5b755e41184c6f4dabb (patch)
tree6c34fb61eea14835187ee8eb3a2c45976b2e3dac
parentd87be863dfb5e984b0351d0e5dbd8ab7c981c5aa (diff)
ignore empty stats files
-rw-r--r--guprecords.raku1
1 files changed, 1 insertions, 0 deletions
diff --git a/guprecords.raku b/guprecords.raku
index 0f4df34..65e2650 100644
--- a/guprecords.raku
+++ b/guprecords.raku
@@ -82,6 +82,7 @@ class Aggregator {
}
method !add-file(IO::Path:D $file) {
+ return if $file.s == 0;
my $host = $file.IO.basename.split('.').first;
die "Record file for $host already processed - duplicate inputs?"