1
0
mirror of https://src.fedoraproject.org/rpms/virt-manager.git synced 2025-07-16 09:04:55 +00:00

Fix typo that broke net stats reporting

Add BuildRequires: GConf2 to fix pre scriplet error
This commit is contained in:
Cole Robinson
2011-07-28 10:58:39 -04:00
parent 46229f0158
commit af8dcfc633
2 changed files with 28 additions and 1 deletions

View 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

View File

@@ -2,7 +2,7 @@
%define _package virt-manager
%define _version 0.9.0
%define _release 2
%define _release 3
%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
@@ -90,6 +92,7 @@ Requires: virt-manager-common = %{verrel}
BuildRequires: gettext
BuildRequires: scrollkeeper
BuildRequires: intltool
BuildRequires: GConf2
Requires(pre): GConf2
Requires(post): GConf2
@@ -137,6 +140,7 @@ Common files used by the different Virtual Machine Manager interfaces.
%prep
%setup -q
%patch1 -p1
%build
%if %{qemu_user}
@@ -247,6 +251,10 @@ update-desktop-database -q %{_datadir}/applications
%endif
%changelog
* Thu Jul 28 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-3
- Fix typo that broke net stats reporting
- Add BuildRequires: GConf2 to fix pre scriplet error
* Tue Jul 26 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-1.fc16
- Rebased to version 0.9.0
- Use a hiding toolbar for fullscreen mode