Add hours buckets
This commit is contained in:
parent
3a5268c37a
commit
4a7fea8945
|
@ -48,6 +48,8 @@ if ($opts{buckets} eq "log2") {
|
||||||
);
|
);
|
||||||
} elsif ($opts{buckets} =~ /^days=(\d+)/) {
|
} elsif ($opts{buckets} =~ /^days=(\d+)/) {
|
||||||
@bucket_max = map $_ * 86400, (1 .. $1);
|
@bucket_max = map $_ * 86400, (1 .. $1);
|
||||||
|
} elsif ($opts{buckets} =~ /^hours=(\d+)/) {
|
||||||
|
@bucket_max = map $_ * 3600, (1 .. $1);
|
||||||
} else {
|
} else {
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue