diff --git a/inxi b/inxi index 0cb7b50..4f4574c 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.4.6 -#### Date: November 7 2008 +#### version: 0.4.7 +#### Date: November 8 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif #### As time permits functionality improvements and recoding will occur. @@ -516,6 +516,8 @@ show_options() print_screen_output "$SCRIPT_NAME supports the following options. You can combine" print_screen_output "them, or list them one by one: Examples: $SCRIPT_NAME -v4 -c6 OR $SCRIPT_NAME -dc 6" + print_screen_output "Note: all extra output options (like -d, -f, -x) require a verbosity level of 1 or higher." + print_screen_output "In other words, they do not run if you do not use either -d or -v1 (or higher)" print_screen_output "- - - - - - - - - - - - - - - - - - - - - - - - - - - - -" print_screen_output "-C Overrides defective or corrupted data." print_screen_output "-c Available color schemes. Scheme number is required." @@ -534,7 +536,7 @@ show_options() print_screen_output " 4 - Also show partition size/filled data for (if present):/, /home, /var/, /boot" print_screen_output " 5 - For multicore systems, also show per core clock speeds." print_screen_output "-V $SCRIPT_NAME version information. Prints information then exits." - print_screen_output "-x Show extra data: bogomips on cpu; full hard disk info with -v3 or greater." + print_screen_output "-x Show extra data: bogomips on cpu; full hard disk info (using -v3 or greater)." rint_screen_output "" } @@ -1177,8 +1179,9 @@ get_hdd_data_basic() size = size*1024/1000**3 # calculate size in GB size workingUsed = hddused*1024/1000**3 # calculate workingUsed in GB used if ( size > 0 && workingUsed > 0 ){ - diskUsed = int( workingUsed*100/size ) # calculate used percentage - size = int( size ) + diskUsed = workingUsed*100/size # calculate used percentage + diskUsed = sprintf( "%.1f", diskUsed ) + size = sprintf( "%.1f", size ) print size"GB,"diskUsed"% used" } else {