removed 10 cpu core print limit, I don't see any reason for that, and it might confuse users if they have more.

This commit is contained in:
inxi-svn 2011-01-12 00:18:03 +00:00
parent 4b24aefa2c
commit 6b592e3287

14
inxi
View file

@ -1,8 +1,8 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.4.22
#### Date: December 10 2010
#### version: 1.4.23
#### Date: January 11 2011
########################################################################
#### SPECIAL THANKS
########################################################################
@ -19,7 +19,7 @@
#### Gaim/Pidgin, Weechat, KVIrc and Kopete.
#### Original infobash author and copyright holder:
#### Copyright (C) 2005-2007 Michiel de Boer a.k.a. locsmif
#### inxi version: Copyright (C) 2008-10 Scott Rogers & Harald Hope
#### inxi version: Copyright (C) 2008-11 Scott Rogers & Harald Hope
#### Further fixes (listed as known): Horst Tritremmel <hjt at sidux.com>
#### Steven Barrett (aka: damentz) - usb audio patch; swap percent used patch
####
@ -4491,9 +4491,11 @@ print_cpu_data()
IFS="$ORIGINAL_IFS"
# note: the first iteration will create a first space, for color code separation below
cpu_multi_clock_data="$cpu_multi_clock_data ${C1}($(( i + 1 )))${C2} ${a_cpu_working[1]} MHz${CN}"
if [[ $i -gt 10 ]];then
break
fi
# someone actually appeared with a 16 core system, so going to stop the cpu core throttle
# if this had some other purpose which we can't remember we'll add it back in
#if [[ $i -gt 10 ]];then
# break
#fi
done
if [[ -n $cpu_multi_clock_data ]];then
cpu_multi_clock_data=$( create_print_line " " "${C1}Clock Speeds:${C2}$cpu_multi_clock_data" )