X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x4%2Fsanity_check;fp=x4%2Fsanity_check;h=749a3ea3753f658944ea284d4511fb60255b48fa;hp=125369aa71dd3b32389c2ef6035f856f0dd154d0;hb=8c587a0277216e4af9865dedfca249044c1ed875;hpb=5bbff27d4c4195e47400c42f5c324632e7f4936a diff --git a/x4/sanity_check b/x4/sanity_check index 125369a..749a3ea 100755 --- a/x4/sanity_check +++ b/x4/sanity_check @@ -23,6 +23,7 @@ sensors_fork_all() { ./bin/khatus_x4_sensor_memory & ./bin/khatus_x4_sensor_loadavg & ./bin/khatus_x4_sensor_temp -i 1 -- -z 0 & + ./bin/khatus_x4_sensor_disk -- -f / & } sensor_read_one() { @@ -46,7 +47,8 @@ sensors_read_all() { mem="$(sensor_read_one ${dir}/khatus_x4_sensor_memory/out/percent_used)" load="$(sensor_read_one ${dir}/khatus_x4_sensor_loadavg/out/load_avg_1min)" temp="$(sensor_read_one ${dir}/khatus_x4_sensor_temp/out/thermal_zone0)" - echo "E[${battery_state} ${battery_percentage}] M:${mem}% L:${load} T:${temp}°C [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" + disk="$(sensor_read_one ${dir}/khatus_x4_sensor_disk/out/disk_usage_percentage)" + echo "E[${battery_state} ${battery_percentage}] M:${mem}% L:${load} T:${temp}°C D:${disk}% [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" sleep 1 done }