add proper error handling for all final exec calls
[hband-tools.git] / user-tools / whisper-retention-info
blobd1cd3859b61190fb6389fb6095c0780a3e13d151
1 #!/bin/sh
3 true <<EOF
4 =pod
6 =head1 NAME
8 whisper-retention-info - Show data retention policy in Whisper timeseries database file
10 =cut
12 EOF
15 whisper-info "$@" | perl -ne 's/seconds\s*per\s*point/resolution/i; /(.*retention|resolution): (\d+)/i and printf "%s = %d sec = %d min = %d hour = %d day = %d year\n", $1, $2, $2/60, $2/3600, $2/3600/24, $2/3600/24/365;'