snapshot remaining files

This commit is contained in:
2024-12-19 15:13:29 +01:00
parent d9f760ab2a
commit efac98f87c
28 changed files with 1818 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
SPEEDTEST=/sbin/speedtest-cli
COLLECTION=sepia
INTERVAL=900
while :; do
SECONDS=0
RESULT=($($SPEEDTEST | grep Mbit | cut -d' ' -f 2))
echo "PUTVAL $COLLECTION/exec-speedtest/gauge-download interval=$INTERVAL N:${RESULT[0]}"
echo "PUTVAL $COLLECTION/exec-speedtest/gauge-upload interval=$INTERVAL N:${RESULT[1]}"
sleep $((INTERVAL-$SECONDS))
done