From 4a7fea89453ee03f7695f87965ec357aa38125cd Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Fri, 2 Sep 2022 20:59:08 +0200 Subject: [PATCH] Add hours buckets --- agestat/agestat.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agestat/agestat.pl b/agestat/agestat.pl index f328fd5..1f27d87 100755 --- a/agestat/agestat.pl +++ b/agestat/agestat.pl @@ -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(); }