From 2c44edebd5e22ed3b8554774f906df42f69fb22b Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 3 Feb 2009 20:57:32 +0000 Subject: [PATCH] Should be final draft before putting live --- inxi | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/inxi b/inxi index 211ed35..d307d96 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.8-b1-t3 +#### version: 0.9.8-b1-t4 #### Date: 3 February 2009 ######################################################################## #### SPECIAL THANKS @@ -2490,13 +2490,14 @@ print_short_data() # set A_CPU_CORE_DATA get_cpu_core_count - local cpc_plural='' cpu_count_print='' + local cpc_plural='' cpu_count_print='' model_plural='' local cpu_physical_count=${A_CPU_CORE_DATA[0]} local cpu_core_count=${A_CPU_CORE_DATA[1]} local cpu_type=${A_CPU_CORE_DATA[2]} if [ "$cpu_physical_count" -gt 1 ];then cpc_plural='(s)' + model_plural='s' cpu_count_print="$cpu_physical_count " fi local cores_per_cpu=$(( $cpu_core_count / $cpu_physical_count )) @@ -2550,7 +2551,7 @@ print_short_data() #C1="${C1},1"; C2="${C2},1"; CN="${CN},1" fi fi - short_data="${C1}CPU$cpc_plural${CN}[${cpu_model}${C2} ${cpu_data_string} ${C1}clocked at${C2} ${min_max_clock}${CN}] ${C1}Kernel${CN}[${C2} ${current_kernel}${CN}] ${C1}Up${CN}[${C2}${FL2}${FL1}${up_time}${FL1}${CN}] ${C1}Mem${CN}[${C2}${FL2}${FL1}${memory}${FL1}${CN}] ${C1}HDD${CN}[${C2}${FL2}${FL1}${hdd_capacity}($hdd_used)${FL1}${CN}] ${C1}Procs${CN}[${C2}${FL2}${FL1}${processes}${FL1}${CN}]" + short_data="${C1}CPU$cpc_plural${CN}[${C2} ${cpu_data_string} ${cpu_model}$model_plural ${C1}clocked at${C2} ${min_max_clock}${CN}] ${C1}Kernel${CN}[${C2} ${current_kernel}${CN}] ${C1}Up${CN}[${C2}${FL2}${FL1}${up_time}${FL1}${CN}] ${C1}Mem${CN}[${C2}${FL2}${FL1}${memory}${FL1}${CN}] ${C1}HDD${CN}[${C2}${FL2}${FL1}${hdd_capacity}($hdd_used)${FL1}${CN}] ${C1}Procs${CN}[${C2}${FL2}${FL1}${processes}${FL1}${CN}]" if [[ $SHOW_IRC -gt 0 ]];then short_data="${short_data} ${C1}Client${CN}[${C2}${IRC_CLIENT}${IRC_CLIENT_VERSION}${CN}]" @@ -2663,7 +2664,7 @@ print_cpu_data() # set A_CPU_CORE_DATA get_cpu_core_count - local cpc_plural='' cpu_count_print='' + local cpc_plural='' cpu_count_print='' model_plural='' local cpu_physical_count=${A_CPU_CORE_DATA[0]} local cpu_core_count=${A_CPU_CORE_DATA[1]} local cpu_type=${A_CPU_CORE_DATA[2]} @@ -2671,6 +2672,7 @@ print_cpu_data() if [ "$cpu_physical_count" -gt 1 ];then cpc_plural='(s)' cpu_count_print="$cpu_physical_count " + model_plural='s' fi local cores_per_cpu=$(( $cpu_core_count / $cpu_physical_count )) local cpu_data_string="${cpu_count_print}${cpu_core_count} core ${cpu_type}" @@ -2686,7 +2688,7 @@ print_cpu_data() a_cpu_working[2]="unknown" fi - cpu_data=$( create_print_line "CPU$cpc_plural:" "${C1}${cpu_data_string}${C2} ${a_cpu_working[0]}" ) + cpu_data=$( create_print_line "CPU$cpc_plural:" "${C1}${cpu_data_string}${C2} ${a_cpu_working[0]}$model_plural" ) if [[ $VERBOSITY_LEVEL -ge 3 || $B_SHOW_CPU == 'true' ]];then # update for multicore, bogomips x core count. if [[ $B_EXTRA_DATA == 'true' ]];then