mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
More output cleanup and tweaks
This commit is contained in:
parent
d7f6f92245
commit
9da615b89b
6
inxi
6
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.1.37
|
#### version: 0.1.38
|
||||||
#### Date: October 29 2008
|
#### Date: October 29 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||||
|
@ -1163,7 +1163,7 @@ print_cpu_data()
|
||||||
then
|
then
|
||||||
cpu_data=$( printf "%s${C2} %s %s ${C1}%s${CN}%s${C2} %s ${CN}%s" "$cpu_data" "${a_cpu_working[2]}" "cache" "flags" "(" "$CPUFLAGS" ")" )
|
cpu_data=$( printf "%s${C2} %s %s ${C1}%s${CN}%s${C2} %s ${CN}%s" "$cpu_data" "${a_cpu_working[2]}" "cache" "flags" "(" "$CPUFLAGS" ")" )
|
||||||
fi
|
fi
|
||||||
cpu_data=$( printf "%s ${C1}%s${C2} ${CN}%s${C2} %s ${CN}%s" "$cpu_data" "clocked at" "[" "${a_cpu_working[1]} MHz" "]" )
|
cpu_data=$( printf "%s ${C1}%s${C2} ${CN}%s" "$cpu_data" "clocked at" "${a_cpu_working[1]} MHz" )
|
||||||
print_screen_output "$cpu_data"
|
print_screen_output "$cpu_data"
|
||||||
|
|
||||||
for (( i=1; i < ${#A_CPU_DATA[@]}-1; i++ ))
|
for (( i=1; i < ${#A_CPU_DATA[@]}-1; i++ ))
|
||||||
|
@ -1176,7 +1176,7 @@ print_cpu_data()
|
||||||
then
|
then
|
||||||
cpu_data=$( printf "%s${C2} %s %s ${C1}%s${CN}%s${C2} %s ${CN}%s" "$cpu_data" "${a_cpu_working[2]}" "cache" "flags" "(" "$CPUFLAGS" ")" )
|
cpu_data=$( printf "%s${C2} %s %s ${C1}%s${CN}%s${C2} %s ${CN}%s" "$cpu_data" "${a_cpu_working[2]}" "cache" "flags" "(" "$CPUFLAGS" ")" )
|
||||||
fi
|
fi
|
||||||
cpu_data=$( printf "%s ${C1}%s${C2} ${CN}%s${C2} %s ${CN}%s" "$cpu_data" "clocked at" "[" "${a_cpu_working[1]} MHz" "]" )
|
cpu_data=$( printf "%s ${C1}%s${C2} ${CN}%s" "$cpu_data" "clocked at" "${a_cpu_working[1]} MHz" )
|
||||||
print_screen_output "$cpu_data"
|
print_screen_output "$cpu_data"
|
||||||
if [ "$i" -gt 10 ]
|
if [ "$i" -gt 10 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue