rpms/dstat/devel dstat-0.7.0-syntax-error-fix.patch, NONE, 1.1 dstat.spec, 1.17, 1.18

Jan Zeleny jzeleny at fedoraproject.org
Mon Feb 22 09:48:02 UTC 2010


Author: jzeleny

Update of /cvs/extras/rpms/dstat/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31084

Modified Files:
	dstat.spec 
Added Files:
	dstat-0.7.0-syntax-error-fix.patch 
Log Message:
fixed syntax error in mysql_conn plugin

dstat-0.7.0-syntax-error-fix.patch:
 dstat_mysql5_conn.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE dstat-0.7.0-syntax-error-fix.patch ---
--- dstat-0.7.0/plugins/dstat_mysql5_conn.py.orig	2010-02-22 09:23:13.000000000 +0100
+++ dstat-0.7.0/plugins/dstat_mysql5_conn.py	2010-02-22 09:21:51.000000000 +0100
@@ -36,7 +36,7 @@ class dstat_plugin(dstat):
             thread = c.fetchone()
             if thread[0] in self.vars:
                 self.set2[thread[0]] = float(thread[1])
-                self.set2['Threads'] = float(thread[1] / float(max[1]) 1.0 * 100)
+                self.set2['Threads'] = float(thread[1]) / float(max[1]) * 100
 
             for name in self.vars:
                 self.val[name] = self.set2[name] * 1.0 / elapsed


Index: dstat.spec
===================================================================
RCS file: /cvs/extras/rpms/dstat/devel/dstat.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- dstat.spec	3 Dec 2009 15:49:09 -0000	1.17
+++ dstat.spec	22 Feb 2010 09:48:02 -0000	1.18
@@ -4,13 +4,14 @@
 Summary: Versatile resource statistics tool
 Name: dstat
 Version: 0.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2
 Group: System Environment/Base
 URL: http://dag.wieers.com/home-made/dstat/
 
 Source: http://dag.wieers.com/home-made/dstat/dstat-%{version}.tar.bz2
 Patch0: dstat-0.6.8-dbus.patch
+Patch1: dstat-0.7.0-syntax-error-fix.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
 
 BuildArch: noarch
@@ -35,6 +36,7 @@ confusion, less mistakes.
 %prep
 %setup -q
 %patch0 -p1 -b .dbus
+%patch1 -p1 -b .syn-error
 
 %build
 # Make sure the docs are in unix format
@@ -65,6 +67,9 @@ cd docs
 %{_datadir}/dstat/*.py*
 
 %changelog
+* Mon Feb 22 2010 Jan Zeleny <jzeleny at redhat.com> - 0.7.0-2
+- fixed syntax error in mysql_conn plugin
+
 * Thu Dec 03 2009 Jan Zeleny <jzeleny at redhat.com> - 0.7.0-1
 - rebased to 0.7.0
 



More information about the scm-commits mailing list