rpms/pg_top/EL-5 pg_top-3.6.2-fix-totals.patch, NONE, 1.1 pg_top.spec, 1.5, 1.6
Alexey Torkhov
atorkhov at fedoraproject.org
Fri Sep 25 21:28:36 UTC 2009
- Previous message (by thread): rpms/perl-Locale-Maketext-Gettext/F-10 import.log, NONE, 1.1 perl-Locale-Maketext-Gettext.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/pg_top/EL-4 pg_top-3.6.2-fix-totals.patch, NONE, 1.1 pg_top.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: atorkhov
Update of /cvs/pkgs/rpms/pg_top/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30223
Modified Files:
pg_top.spec
Added Files:
pg_top-3.6.2-fix-totals.patch
Log Message:
* Sat Sep 26 2009 Alexey Torkhov <atorkhov at gmail.com> - 3.6.2-8
- Fix display of cumulative statistics (BZ#525763)
pg_top-3.6.2-fix-totals.patch:
pg.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
--- NEW FILE pg_top-3.6.2-fix-totals.patch ---
diff -Narup pg_top-3.6.2/pg.c pg_top-3.6.2.new/pg.c
--- pg_top-3.6.2/pg.c 2008-04-03 08:37:46.000000000 +0400
+++ pg_top-3.6.2.new/pg.c 2009-09-26 00:48:37.000000000 +0400
@@ -798,9 +798,9 @@ update_index_stats(struct index_node * n
long long idx_tup_read, long long idx_tup_fetch)
{
/* Add to the index totals */
- node->total_idx_scan += idx_scan;
- node->total_idx_tup_read += idx_tup_read;
- node->total_idx_tup_fetch += idx_tup_fetch;
+ node->total_idx_scan = idx_scan;
+ node->total_idx_tup_read = idx_tup_read;
+ node->total_idx_tup_fetch = idx_tup_fetch;
/* Calculate difference between previous and current values. */
node->diff_idx_scan = idx_scan - node->old_idx_scan;
@@ -819,13 +819,13 @@ update_table_stats(struct table_node * n
long long n_tup_ins, long long n_tup_upd, long long n_tup_del)
{
/* Add to the table totals */
- node->total_idx_scan += idx_scan;
- node->total_idx_tup_fetch += idx_tup_fetch;
- node->total_n_tup_del += n_tup_del;
- node->total_n_tup_ins += n_tup_ins;
- node->total_n_tup_upd += n_tup_upd;
- node->total_seq_scan += seq_scan;
- node->total_seq_tup_read += seq_tup_read;
+ node->total_idx_scan = idx_scan;
+ node->total_idx_tup_fetch = idx_tup_fetch;
+ node->total_n_tup_del = n_tup_del;
+ node->total_n_tup_ins = n_tup_ins;
+ node->total_n_tup_upd = n_tup_upd;
+ node->total_seq_scan = seq_scan;
+ node->total_seq_tup_read = seq_tup_read;
/* Calculate difference between previous and current values. */
node->diff_idx_scan = idx_scan - node->old_idx_scan;
Index: pg_top.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pg_top/EL-5/pg_top.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- pg_top.spec 25 Sep 2009 19:44:32 -0000 1.5
+++ pg_top.spec 25 Sep 2009 21:28:36 -0000 1.6
@@ -1,11 +1,13 @@
Summary: 'top' for PostgreSQL process
Name: pg_top
Version: 3.6.2
-Release: 7%{?dist}
+Release: 8%{?dist}
License: BSD
Group: Applications/Databases
Source0: http://pgfoundry.org/frs/download.php/1780/%{name}-%{version}.tar.bz2
URL: http://pgfoundry.org/projects/ptop
+# Reported upstream: http://pgfoundry.org/tracker/index.php?func=detail&aid=1010710&group_id=1000300&atid=1129
+Patch0: pg_top-3.6.2-fix-totals.patch
BuildRequires: postgresql-devel
BuildRequires: libtermcap-devel
BuildRequires: elfutils-libelf-devel
@@ -23,6 +25,7 @@ query plans, issued locks, and table and
%prep
%setup -q -n %{name}-%{version}
+%patch0 -p1
%build
%configure
@@ -44,6 +47,9 @@ rm -rf %{buildroot}
%doc FAQ HISTORY INSTALL LICENSE README TODO Y2K
%changelog
+* Sat Sep 26 2009 Alexey Torkhov <atorkhov at gmail.com> - 3.6.2-8
+- Fix display of cumulative statistics (BZ#525763)
+
* Fri Sep 25 2009 Itamar Reis Peixoto <itamar at ispbrasil.com.br> - 3.6.2-7
- starting building for EPEL too
- Previous message (by thread): rpms/perl-Locale-Maketext-Gettext/F-10 import.log, NONE, 1.1 perl-Locale-Maketext-Gettext.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/pg_top/EL-4 pg_top-3.6.2-fix-totals.patch, NONE, 1.1 pg_top.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list