]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: domain: Fix output of the VNC display number for domdisplay
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 May 2014 09:26:28 +0000 (11:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 May 2014 09:34:38 +0000 (11:34 +0200)
commit31b140eba49786851d42ed1181c3f3db00e64f81
treee743e832c36271b0615fd45068af7bd9b69194b8
parentda879e592142291709f7b95b9218d32bb1869d1a
virsh: domain: Fix output of the VNC display number for domdisplay

Commit 9976c4b9a665f10ab0d2071954efb7f432d194eb broke the output for VNC
displays as the port number is converted to VNC display number by
subtracting 5900. This yields port 0 for the first display and thus the
output would be skipped.

Before:
 $ virsh domdisplay VM
 vnc://localhost

After:
 $ tools/virsh domdisplay VM
 vnc://localhost:0
tools/virsh-domain.c