mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-11-24 11:37:41 -05:00
disk_io now checks if iostat is available. "done" is now always printed before exiting
This commit is contained in:
@@ -11,6 +11,11 @@ defaults () {
|
||||
}
|
||||
|
||||
start () {
|
||||
if ! command_exists iostat; then
|
||||
echo "Warning: disk_io requires the command 'iostat' to be available"
|
||||
return 1
|
||||
fi
|
||||
|
||||
readonly fifo=$TEMP_DIR/$(unique_id)_disk_io
|
||||
mkfifo $fifo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user