X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=x4%2Fsanity_check;h=62a23eab2342ebc7c189e1604e0d9574fc87de35;hb=731a145eca3424118c9dfc6bb36d63c3b391e70c;hp=af68cf67889f712135574815f0f896925fc7096e;hpb=3565cd1da64d6d0d273476e6bd94a83cd65d4b0e;p=khatus.git diff --git a/x4/sanity_check b/x4/sanity_check index af68cf6..62a23ea 100755 --- a/x4/sanity_check +++ b/x4/sanity_check @@ -20,6 +20,8 @@ sensors_fork_all() { ./bin/khatus_x4_sensor_bluetooth& ./bin/khatus_x4_sensor_mpd & ./bin/khatus_x4_sensor_energy & + ./bin/khatus_x4_sensor_memory & + ./bin/khatus_x4_sensor_loadavg & } sensor_read_one() { @@ -40,7 +42,9 @@ sensors_read_all() { bluetooth_devices="$(sensor_read_one ${dir}/khatus_x4_sensor_bluetooth/out/count_connected_devices)" datetime="$(sensor_read_one ${dir}/khatus_x4_sensor_datetime/out/datetime)" mpd="$(sensor_read_one ${dir}/khatus_x4_sensor_mpd/out/status)" - echo "E[${battery_state} ${battery_percentage}] [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" + 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)" + echo "E[${battery_state} ${battery_percentage}] M:${mem}% L:${load} [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" sleep 1 done }