local varsvc=${facet}_svc
local dev=$(ldiskfs_canon "*.${!varsvc}.mntdev" $facet)
- # ext4: /proc/fs/jbd2/sda1:8/history
+ # ext4: /proc/fs/jbd2/sda1:8/history
# ext3: /proc/fs/jbd/sdb1/history
do_facet $facet cat /proc/fs/jbd*/${dev}*/$file
# $8: hndls >= thrhi * 2
# display history of rtime/4 before, in case obd cleanup consumes time
local tlines=$((rtime / 5 / 4 + 1))
- local hist=("$(print_jbd history $facet | tail -$tlines | head -1)")
+ local hist=("$(print_jbd history $facet | tail -$tlines | head -n1)")
echo "$hist"
local run=($(echo "${hist[*]}" | awk '{print $4}'))
local hndls=($(echo "${hist[*]}" | awk '{print $8}'))