From 065346e693f61fc82439251189cf604405d70163 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 28 Jul 2011 10:47:31 -0400 Subject: [PATCH] Fix typo that broke net stats reporting --- virt-manager-fix-net-stats.patch | 19 +++++++++++++++++++ virt-manager.spec | 8 +++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 virt-manager-fix-net-stats.patch diff --git a/virt-manager-fix-net-stats.patch b/virt-manager-fix-net-stats.patch new file mode 100644 index 0000000..eb2b2ce --- /dev/null +++ b/virt-manager-fix-net-stats.patch @@ -0,0 +1,19 @@ +commit 62a762e77f2f5e5298ececda6fb4638b8488da4a +Author: Cole Robinson +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 diff --git a/virt-manager.spec b/virt-manager.spec index 0de822b..c01cd7b 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -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 - 0.9.0-4 +- Fix typo that broke net stats reporting + * Wed Jul 27 2011 Cole Robinson - 0.9.0-3 - Add BuildRequires: GConf2 to fix pre scriplet error