nutups2: add runtime graph to monitor UPS's remaining runtime

This commit is contained in:
Kim B. Heino 2021-03-31 12:30:00 +03:00 committed by Lars Kruse
parent 4af69a6d07
commit 50cb1d8997
1 changed files with 8 additions and 0 deletions

View File

@ -133,6 +133,14 @@ my %config = (
config => \&common_config,
fetch => \&common_fetch,
},
runtime => {
filter => qr/^(.*)\.runtime$/,
title => 'UPS runtime',
args => '--base 1000 -l 0',
vlabel => 'Seconds',
config => \&common_config,
fetch => \&common_fetch,
},
);
sub read_ups_values {