summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-11-30 13:21:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-11-30 13:21:34 (GMT)
commit4923b67da2fee78a66c5eb7687b696b1c86c96ce (patch)
tree42f8a99324f023fb3460657dd7a088c1c31d77ae /abs/core
parentd2db1581d23f1f19ac72a0637de9c141f9370977 (diff)
downloadlinhes_pkgbuild-4923b67da2fee78a66c5eb7687b696b1c86c96ce.zip
linhes_pkgbuild-4923b67da2fee78a66c5eb7687b696b1c86c96ce.tar.gz
linhes_pkgbuild-4923b67da2fee78a66c5eb7687b696b1c86c96ce.tar.bz2
LinHES-system: checkXFSfrag.sh: fix percentage parsing
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/LinHES-system/PKGBUILD4
-rwxr-xr-xabs/core/LinHES-system/checkXFSfrag.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index 7a02894..9cc6e8b 100755
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-system
pkgver=8.4
-pkgrel=16
+pkgrel=17
arch=('i686' 'x86_64')
install=system.install
pkgdesc="Everything that makes LinHES an automated system"
@@ -125,7 +125,7 @@ md5sums=('c6e6b83a1f4c35ef4501e277657ab2ac'
'bacc813b48bafcc6fe906e5969930501'
'dedd3fcb1abec6361f4060d8149c7d6d'
'8b0298f70f97cc1dc2a58b9a73c64bd3'
- 'b4bb70650893c811c854d446cfa6ca6a'
+ '85558db5864bc70676ef46acc4595f88'
'e30bf8ec8b9dcc2ceb7127375a91d8d1'
'e9f545c3bcf9c85b45496c281fc6a1b8'
'a94fe6d980f4b810f2e2ae5352084b39'
diff --git a/abs/core/LinHES-system/checkXFSfrag.sh b/abs/core/LinHES-system/checkXFSfrag.sh
index 709cdac..5fccece 100755
--- a/abs/core/LinHES-system/checkXFSfrag.sh
+++ b/abs/core/LinHES-system/checkXFSfrag.sh
@@ -42,11 +42,11 @@ do
isSATA=`cat /sys/block/${device}/queue/rotational`
if [[ $isSATA -eq 1 ]]
then
- percentage=`$xfsdb -c frag -r ${i}|cut -f 7 --delim=" "`
+ percentage=`$xfsdb -c frag -r ${i}|grep factor|cut -f 7 --delim=" "`
percent2=`$e $percentage|cut -f 1 --delim=.`
if [ "$percent2" -gt "$pctmax" ]
then
- $e "${i} is $percentage% fragmented. Running defragment on ${i}."
+ $e "${i} is $percentage fragmented. Running defragment on ${i}."
# Only uncomment one of the following two lines.
#$xfsfsr -v ${i} # Uncomment for verbose defrag.
$ionice -c3 $xfsfsr ${i} # Uncomment for quiet defrag.