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