added usage to measure_temp.sh

run-cpu-stress.sh uses the  job file in fio.
This commit is contained in:
2026-01-24 06:20:50 +01:00
parent b8c8a18db3
commit fb803c13f0
2 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,21 @@
#!/bin/bash
START=$(date +%s)
usage() {
local name=${0##*/}
cat <<-EOF
Usage: ${name} [-h || --help]
measures the pu core temperature an echoes with a squenence number to stdout.
EOF
}
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
usage
exit 0
fi
while true; do
NOW=$(date +%s)
TS=$((NOW - START))