make more portable a hash reference to a scalar variable #378

This commit is contained in:
Jordi Sanfeliu 2021-12-23 16:21:57 +01:00
parent 0daa1e75b6
commit 7c86c5d77f
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ sub du_init {
}
if(index($key, 'ds[') == 0) {
if(index($key, '.minimal_heartbeat') != -1) {
$rrd_heartbeat = %$info{$key};
$rrd_heartbeat = $info->{$key};
if($rrd_heartbeat != $heartbeat) {
my $ds_name = substr($key, 3, index($key, ']') - 3);
push(@ds_to_change_heartbeat, $ds_name);