From e3d74acb33624b3b4a676b56ae35c67ec88c8e55 Mon Sep 17 00:00:00 2001 From: garnier-quentin <garnier.quentin@gmail.com> Date: Thu, 3 Mar 2022 11:48:32 +0100 Subject: [PATCH] wip --- apps/vmware/connector/mode/snapshotvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/vmware/connector/mode/snapshotvm.pm b/apps/vmware/connector/mode/snapshotvm.pm index ca7737758..070f0b709 100644 --- a/apps/vmware/connector/mode/snapshotvm.pm +++ b/apps/vmware/connector/mode/snapshotvm.pm @@ -83,10 +83,10 @@ sub get_threshold_message { my @messages = (); if ($options{threshold} =~ /^([\-0-9]*):/) { - push @messages, sprintf('newer than %d %s', defined($1) && $1 ne '' ? $1 : 0, $options{unit}); + push @messages, sprintf('newer than %s %s', defined($1) && $1 ne '' ? $1 : 0, $options{unit}); } if ($options{threshold} =~ /^(?:[\-0-9]*:)?(-?[0-9]+)$/) { - push @messages, sprintf('older than %d %s', $1, $options{unit}); + push @messages, sprintf('older than %s %s', $1, $options{unit}); } return join(' or ', @messages);