From 899b219e059cc198b0a10f7d76dd8bd208a090f2 Mon Sep 17 00:00:00 2001 From: sayantan dutta Date: Tue, 16 Apr 2013 16:26:45 +0530 Subject: [PATCH] Bug #16632543 - INCORRECT VALUE OF BOGOMIPS IN MYSQLTEST --- mysql-test/lib/My/SysInfo.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql-test/lib/My/SysInfo.pm b/mysql-test/lib/My/SysInfo.pm index 28660f44bae..36c50ab91d1 100644 --- a/mysql-test/lib/My/SysInfo.pm +++ b/mysql-test/lib/My/SysInfo.pm @@ -1,5 +1,5 @@ # -*- cperl -*- -# Copyright (c) 2008 MySQL AB, 2008 Sun Microsystems, Inc. +# Copyright (c) 2013 MySQL AB, 2008 Sun Microsystems, Inc. # Use is subject to license terms. # # This program is free software; you can redistribute it and/or modify @@ -60,7 +60,7 @@ sub _cpuinfo { } # Make sure bogomips is set to some value - $cpuinfo->{bogomips} |= DEFAULT_BOGO_MIPS; + $cpuinfo->{bogomips} ||= DEFAULT_BOGO_MIPS; # Cpus reported once, but with 'cpu_count' set to the actual number my $cpu_count= $cpuinfo->{cpu_count} || 1;