updated comments

This commit is contained in:
inxi-svn 2009-08-07 00:28:07 +00:00
parent 38475a5e4b
commit 5e23f6caa4

4
inxi
View file

@ -3978,7 +3978,7 @@ print_hard_disk_data()
if [[ $B_SHOW_DISK == 'true' || $VERBOSITY_LEVEL -ge 3 ]];then if [[ $B_SHOW_DISK == 'true' || $VERBOSITY_LEVEL -ge 3 ]];then
hdd_string="$usb_data$dev_data$hdd_name$size_data$hdd_temp_data" hdd_string="$usb_data$dev_data$hdd_name$size_data$hdd_temp_data"
hdd_model="${hdd_model}${C1}$(($i+1)):${C2} $hdd_string " hdd_model="${hdd_model}${C1}$(($i+1)):${C2} $hdd_string "
# printing line one, then every other line, and after, if leftovers, print that line. # printing line one, then new lines according to $divisor setting, and after, if leftovers, print that line.
case $i in case $i in
0) 0)
hdd_data=$( create_print_line "Disks:" "${C1}HDD${C2} ${C1}Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" ) hdd_data=$( create_print_line "Disks:" "${C1}HDD${C2} ${C1}Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" )
@ -3986,7 +3986,7 @@ print_hard_disk_data()
hdd_model='' hdd_model=''
;; ;;
*) *)
# using modulus here, if divisible by 2, print line, otherwise skip # using modulus here, if divisible by $divisor, print line, otherwise skip
if [[ $(( $i % $divisor )) -eq 0 ]];then if [[ $(( $i % $divisor )) -eq 0 ]];then
hdd_data=$( create_print_line " " "${hdd_model}${CN}" ) hdd_data=$( create_print_line " " "${hdd_model}${CN}" )
print_screen_output "$hdd_data" print_screen_output "$hdd_data"