mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
improved comments
This commit is contained in:
parent
5e8d6f9194
commit
5b6a953013
2
inxi
2
inxi
|
@ -1871,6 +1871,8 @@ get_hdd_data_basic()
|
||||||
}
|
}
|
||||||
# if the first item caused a wrap, use one less than standard
|
# if the first item caused a wrap, use one less than standard
|
||||||
# testing for the field with % in it, ie: 34%, then go down from there
|
# testing for the field with % in it, ie: 34%, then go down from there
|
||||||
|
# this also protects against cases where the mount point has a space in the
|
||||||
|
# file name, thus breaking going down from $NF directly.
|
||||||
if ( $4 ~ /.*\%/ ) {
|
if ( $4 ~ /.*\%/ ) {
|
||||||
used += $2
|
used += $2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue