Blame SOURCES/0008-Fix-docs-for-Sys-Virt-Domain-get_time-method.patch
|
|
18fc82 |
From bd76166457ec52e45b6f6c223dd05e52b27a57d3 Mon Sep 17 00:00:00 2001
|
|
|
18fc82 |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
|
18fc82 |
Date: Thu, 4 Dec 2014 15:57:05 +0000
|
|
|
18fc82 |
Subject: [PATCH] Fix docs for Sys::Virt::Domain::get_time() method
|
|
|
18fc82 |
|
|
|
18fc82 |
(cherry picked from commit 91e83ebb6c577f1530e4fb8de9d7e85d4bdcbafb)
|
|
|
18fc82 |
---
|
|
|
18fc82 |
lib/Sys/Virt/Domain.pm | 6 ++++--
|
|
|
18fc82 |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
18fc82 |
|
|
|
18fc82 |
diff --git a/lib/Sys/Virt/Domain.pm b/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
index 728ab1d..60d2232 100644
|
|
|
18fc82 |
--- a/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
+++ b/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
@@ -473,11 +473,13 @@ the current state.
|
|
|
18fc82 |
|
|
|
18fc82 |
=back
|
|
|
18fc82 |
|
|
|
18fc82 |
-=item my ($secs, $nsecs) = $dom->get_time($flags=0);
|
|
|
18fc82 |
+=item my $time = $dom->get_time($flags=0);
|
|
|
18fc82 |
|
|
|
18fc82 |
Get the current time of the guest, in seconds and nanoseconds.
|
|
|
18fc82 |
The C<$flags> parameter is currently unused and defaults to
|
|
|
18fc82 |
-zero.
|
|
|
18fc82 |
+zero. The return value is an array ref with two elements,
|
|
|
18fc82 |
+the first contains the time in seconds, the second contains
|
|
|
18fc82 |
+the remaining nanoseconds.
|
|
|
18fc82 |
|
|
|
18fc82 |
=item $dom->set_time($secs, $nsecs, $flags=0);
|
|
|
18fc82 |
|