]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-admin: Introduce srv-clients-list command
authorErik Skultety <eskultet@redhat.com>
Sat, 16 Apr 2016 07:13:21 +0000 (09:13 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 3 May 2016 08:04:54 +0000 (10:04 +0200)
commitde7703917db4e8b2d56155011658bfe1c34fc380
tree860bbf74be91a600b72cc5b6baae5424c736ed3e
parented978fa2bcd8a3a17f098850fd8ae586ef4aee8e
virt-admin: Introduce srv-clients-list command

Wire-up the public client listing API. Along with this change, a private time
simple conversion method to interpret client's timestamp obtained from server
has been added as well. Format used to for time output is as follows:
YYYY-mm-DD HH:MM:SS+ZZZZ.

Although libvirt exposes methods time-related methods through virtime.h
internally, it utilizes millisecond precision which we don't need in this case,
especially when connection timestamps use precision to seconds only.
This is just a convenience int to string conversion method.

To reflect the new API, man page has been adjusted accordingly.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tools/virt-admin.c
tools/virt-admin.pod