Add hours buckets

This commit is contained in:
Peter J. Holzer 2022-09-02 20:59:08 +02:00
parent 3a5268c37a
commit 4a7fea8945
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ if ($opts{buckets} eq "log2") {
);
} elsif ($opts{buckets} =~ /^days=(\d+)/) {
@bucket_max = map $_ * 86400, (1 .. $1);
} elsif ($opts{buckets} =~ /^hours=(\d+)/) {
@bucket_max = map $_ * 3600, (1 .. $1);
} else {
usage();
}