X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x4%2Fsanity_check;fp=x4%2Fsanity_check;h=a01a0c1e91bf91a37cb9f9310494f60d7a79839f;hp=af68cf67889f712135574815f0f896925fc7096e;hb=6f89e24d338937cf8e7aeac5c854b4f442181030;hpb=930af02f228ed63a535c6a93211d3f6a10c7b772 diff --git a/x4/sanity_check b/x4/sanity_check index af68cf6..a01a0c1 100755 --- a/x4/sanity_check +++ b/x4/sanity_check @@ -20,6 +20,7 @@ sensors_fork_all() { ./bin/khatus_x4_sensor_bluetooth& ./bin/khatus_x4_sensor_mpd & ./bin/khatus_x4_sensor_energy & + ./bin/khatus_x4_sensor_memory & } sensor_read_one() { @@ -40,7 +41,8 @@ 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)" + echo "E[${battery_state} ${battery_percentage}] M:${mem}% [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" sleep 1 done }