From: Ian Jackson Date: Tue, 27 Oct 2020 12:17:12 +0000 (+0000) Subject: pdu-snmp: Fix sleeping X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=29b0ab31258f4e090ef0138434bf0cf686631e44;p=osstest.git pdu-snmp: Fix sleeping sleep takes only an integer. We have to use select to sleep for fractions of a second. Signed-off-by: Ian Jackson --- diff --git a/pdu-snmp b/pdu-snmp index 6138076..79d22e1 100755 --- a/pdu-snmp +++ b/pdu-snmp @@ -172,7 +172,7 @@ if (!defined $action) { my $retries = 0; for (;;) { set($valset); - sleep $retries * 0.1; + select undef,undef,undef, $retries * 0.1; print "now: "; my $got = show(); if ($got eq $map[$valset]) { last; } if ($map[$valset] !~ m{^(?:off|on)$}) {