Shift X2 status from legacy to archived
[khatus.git] / x4 / bin / khatus_x4_sensor_memory
CommitLineData
6f89e24d
SK
1#! /bin/sh
2
3set -e
4
5bin_dir="$(dirname $(realpath $0))"
6
7. "$bin_dir/khatus_x4_lib_common_sensor.sh"
8
9sensor() {
10 free | awk '
11 $1 == "Mem:" {
12 total = $2
13 used = $3
14 percent_used = int(((used / total) * 100) + 0.5) # Average
15 print("percent_used", percent_used)
16 }
17 '
18}
19
20run_as_poller
This page took 0.032086 seconds and 4 git commands to generate.