summaryrefslogtreecommitdiff
path: root/scripts/mysqldumpslow.sh
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-07-07 18:56:53 -0400
committerChad MILLER <chad@mysql.com>2008-07-07 18:56:53 -0400
commitc7866ece4d3795d5ecc5dd481e75d0ed776fb36a (patch)
treee4150fe64aa23a6306e38911a9fd4acc4d522de6 /scripts/mysqldumpslow.sh
parent205a946267c77186fbc35ccb0460488b1948fe42 (diff)
downloadmariadb-git-c7866ece4d3795d5ecc5dd481e75d0ed776fb36a.tar.gz
Bug#34129: mysqldumpslow does not aggregate times
Query times were changed to contain subsecond information after a decimal. Change the capturing regex to account for decimal also.
Diffstat (limited to 'scripts/mysqldumpslow.sh')
-rw-r--r--scripts/mysqldumpslow.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqldumpslow.sh b/scripts/mysqldumpslow.sh
index f05761bb837..2d59b470331 100644
--- a/scripts/mysqldumpslow.sh
+++ b/scripts/mysqldumpslow.sh
@@ -83,7 +83,7 @@ while ( defined($_ = shift @pending) or defined($_ = <>) ) {
s/^#? Time: \d{6}\s+\d+:\d+:\d+.*\n//;
my ($user,$host) = s/^#? User\@Host:\s+(\S+)\s+\@\s+(\S+).*\n// ? ($1,$2) : ('','');
- s/^# Query_time: (\d+) Lock_time: (\d+) Rows_sent: (\d+).*\n//;
+ s/^# Query_time: ([0-9.]+) Lock_time: ([0-9.]+) Rows_sent: ([0-9.]+).*\n//;
my ($t, $l, $r) = ($1, $2, $3);
$t -= $l unless $opt{l};