public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-db/mytop/files: mytop-1.6-queries-vs-questions-mysql-5.0.76.patch
@ 2009-02-15  1:38 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; only message in thread
From: Robin H. Johnson (robbat2) @ 2009-02-15  1:38 UTC (permalink / raw
  To: gentoo-commits

robbat2     09/02/15 01:38:59

  Modified:             mytop-1.6-queries-vs-questions-mysql-5.0.76.patch
  Log:
  Had a bug in the first edition of the patch, roll out a new revision instead.
  (Portage version: 2.2_rc23/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  dev-db/mytop/files/mytop-1.6-queries-vs-questions-mysql-5.0.76.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mytop/files/mytop-1.6-queries-vs-questions-mysql-5.0.76.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mytop/files/mytop-1.6-queries-vs-questions-mysql-5.0.76.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mytop/files/mytop-1.6-queries-vs-questions-mysql-5.0.76.patch?r1=1.1&r2=1.2

Index: mytop-1.6-queries-vs-questions-mysql-5.0.76.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-db/mytop/files/mytop-1.6-queries-vs-questions-mysql-5.0.76.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -p -w -b -B -u -u -r1.1 -r1.2
--- mytop-1.6-queries-vs-questions-mysql-5.0.76.patch	13 Feb 2009 22:09:38 -0000	1.1
+++ mytop-1.6-queries-vs-questions-mysql-5.0.76.patch	15 Feb 2009 01:38:59 -0000	1.2
@@ -10,21 +10,32 @@ Signed-off-by: Robin H. Johnson <robbat2
 MySQL-Bug: 41131
 MySQL-Bug-URL: http://bugs.mysql.com/?id=41131
 
+====
+Revision 2:
+The first revision missed changing the instances of $OLD_STATUS{Questions}.
+
 diff -Nuar mytop-1.6.orig/mytop mytop-1.6/mytop
---- mytop-1.6.orig/mytop	2009-02-13 13:59:43.882787823 -0800
-+++ mytop-1.6/mytop	2009-02-13 14:03:54.749418810 -0800
-@@ -800,8 +800,8 @@
+--- mytop-1.6.orig/mytop	2009-02-14 17:28:38.696187159 -0800
++++ mytop-1.6/mytop	2009-02-14 17:36:31.192890507 -0800
+@@ -800,8 +800,15 @@
  
          ## Queries per second...
  
 -        my $avg_queries_per_sec  = sprintf("%.2f", $STATUS{Questions} / $STATUS{Uptime});
 -        my $num_queries          = $STATUS{Questions};
-+		my $num_queries = defined($STATUS{Queries}) ? $STATUS{Queries} : $STATUS{Questions};
++        my ($num_queries, $old_num_queries);
++        if(defined($STATUS{Queries})) {
++            $num_queries = $STATUS{Queries};
++            $old_num_queries = $OLD_STATUS{Queries};
++        } else {
++            $num_queries = $STATUS{Questions};
++            $old_num_queries = $OLD_STATUS{Questions};
++        }
 +        my $avg_queries_per_sec  = sprintf("%.2f", $num_queries / $STATUS{Uptime});
  
          my @t = localtime(time);
  
-@@ -820,25 +820,25 @@
+@@ -820,25 +827,25 @@
  
  
          printf " Queries: %-5s  qps: %4.0f Slow: %7s         Se/In/Up/De(%%):    %02.0f/%02.0f/%02.0f/%02.0f \n",
@@ -50,12 +61,12 @@ diff -Nuar mytop-1.6.orig/mytop mytop-1.
          {
 -          my $q_diff = ( $STATUS{Questions} - $OLD_STATUS{Questions} );
 -#          print("q_diff: $STATUS{Questions} - $OLD_STATUS{Questions}  / $t_delta = $q_diff\n");
-+          my $q_diff = ( $num_queries - $OLD_STATUS{Questions} );
-+#          print("q_diff: $num_queries - $OLD_STATUS{Questions}  / $t_delta = $q_diff\n");
++          my $q_diff = ( $num_queries - $old_num_queries );
++#          print("q_diff: $num_queries - $old_num_queries  / $t_delta = $q_diff\n");
  
            printf("             qps now: %4.0f Slow qps: %3.1f  Threads: %4.0f (%4.0f/%4.0f) %02.0f/%02.0f/%02.0f/%02.0f \n",
 -                 ( $STATUS{Questions} - $OLD_STATUS{Questions} ) / $t_delta,
-+                 ( $num_queries - $OLD_STATUS{Questions} ) / $t_delta,
++                 ( $num_queries - $old_num_queries ) / $t_delta,
                   ( # slow now (qps)
                    ($STATUS{Slow_queries} ) ?
                    ( $STATUS{Slow_queries} - $OLD_STATUS{Slow_queries} ) / $t_delta :






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-15  1:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15  1:38 [gentoo-commits] gentoo-x86 commit in dev-db/mytop/files: mytop-1.6-queries-vs-questions-mysql-5.0.76.patch Robin H. Johnson (robbat2)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox