]> xenbits.xensource.com Git - osstest.git/commitdiff
PDU/MSW: Actually implement delayed-*
authorIan Jackson <iwj@xenproject.org>
Wed, 21 Oct 2020 15:05:50 +0000 (16:05 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 22 Oct 2020 16:34:58 +0000 (17:34 +0100)
Nothing in our tree uses this but having it here is useful docs for
the protocol so I shan't just delete it.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
pdu-msw

diff --git a/pdu-msw b/pdu-msw
index 03b0f3420dc46f96db9cca1beb9c006d7119fced..196b6c45a56331a0603c2f64923255565228d57c 100755 (executable)
--- a/pdu-msw
+++ b/pdu-msw
@@ -127,7 +127,7 @@ sub action_value () {
                  $action =~ m/^(?:1|on)$/ ? 1 :
                  $action =~ m/^(?:reboot)$/ ? 3 :
                  die "unknown action $action\n$usagemsg");
-    return $valset;
+    return $valset + $delayadd;
 }
 
 sub set ($) {