Fix typo that broke net stats reporting
This commit is contained in:
parent
a4ebb483b6
commit
065346e693
19
virt-manager-fix-net-stats.patch
Normal file
19
virt-manager-fix-net-stats.patch
Normal file
@ -0,0 +1,19 @@
|
||||
commit 62a762e77f2f5e5298ececda6fb4638b8488da4a
|
||||
Author: Cole Robinson <crobinso@redhat.com>
|
||||
Date: Wed Jul 27 12:02:29 2011 -0400
|
||||
|
||||
domain: Fix typo that broke net stats gathering
|
||||
|
||||
diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py
|
||||
index d0683db..f9a39b5 100644
|
||||
--- a/src/virtManager/domain.py
|
||||
+++ b/src/virtManager/domain.py
|
||||
@@ -1448,7 +1448,7 @@ class vmmDomain(vmmLibvirtObject):
|
||||
def _sample_network_traffic(self):
|
||||
rx = 0
|
||||
tx = 0
|
||||
- if (not self._stats_net_supported or not
|
||||
+ if (not self._stats_net_supported or
|
||||
not self._enable_net_poll or
|
||||
not self.is_active()):
|
||||
return rx, tx
|
@ -2,7 +2,7 @@
|
||||
|
||||
%define _package virt-manager
|
||||
%define _version 0.9.0
|
||||
%define _release 3
|
||||
%define _release 4
|
||||
%define virtinst_version 0.600.0
|
||||
|
||||
%define qemu_user "qemu"
|
||||
@ -34,6 +34,8 @@ Group: Applications/Emulators
|
||||
License: GPLv2+
|
||||
URL: http://virt-manager.org/
|
||||
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
||||
# Fix typo that broke net stats reporting
|
||||
Patch1: %{name}-fix-net-stats.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
@ -138,6 +140,7 @@ Common files used by the different Virtual Machine Manager interfaces.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%if %{qemu_user}
|
||||
@ -248,6 +251,9 @@ update-desktop-database -q %{_datadir}/applications
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jul 28 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-4
|
||||
- Fix typo that broke net stats reporting
|
||||
|
||||
* Wed Jul 27 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-3
|
||||
- Add BuildRequires: GConf2 to fix pre scriplet error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user