mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Fixed a hard disk percent used bug, needed to add /dev/dm-<number> to pattern
This commit is contained in:
parent
ea48c34edb
commit
82d1116006
6
inxi
6
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.0.0
|
#### version: 1.0.1
|
||||||
#### Date: 11 February 2009
|
#### Date: 11 February 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -1942,7 +1942,8 @@ get_hdd_data_basic()
|
||||||
local hdd_used=''
|
local hdd_used=''
|
||||||
|
|
||||||
hdd_used=$( df | gawk '
|
hdd_used=$( df | gawk '
|
||||||
/^\/dev\/(mapper\/|[hs]d[a-z][0-9]+)/ {
|
# also handles odd dm-1 type, from lvm
|
||||||
|
/^\/dev\/(mapper\/|[hs]d[a-z][0-9]+|dm[-]?[0-9]+)/ {
|
||||||
# this handles the case where the first item is too long
|
# this handles the case where the first item is too long
|
||||||
# and makes df wrap output to next line, so here we advance
|
# and makes df wrap output to next line, so here we advance
|
||||||
# it to the next line for that single case
|
# it to the next line for that single case
|
||||||
|
@ -3234,7 +3235,6 @@ print_partition_data()
|
||||||
else
|
else
|
||||||
part_dev="${a_partition_working[5]}"
|
part_dev="${a_partition_working[5]}"
|
||||||
dev_remote='remote'
|
dev_remote='remote'
|
||||||
b_is_remote='true'
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
part_dev='N/A'
|
part_dev='N/A'
|
||||||
|
|
Loading…
Reference in a new issue