summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-16 11:56:45 +0100
committerSimon Rettberg2023-02-16 11:56:45 +0100
commitb1bf9275cf54612d41676248cca724c492fbf473 (patch)
tree3a4e6924550c636af862c362953b3e38b7fac49c /core/modules/hardware-stats
parent[printergui] physdev matching doesn't work anymore (diff)
downloadmltk-b1bf9275cf54612d41676248cca724c492fbf473.tar.gz
mltk-b1bf9275cf54612d41676248cca724c492fbf473.tar.xz
mltk-b1bf9275cf54612d41676248cca724c492fbf473.zip
[hardware-stats] Increase timeouts again
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update3
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_report2
2 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update b/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update
index c3638006..1b2ab1ae 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update
@@ -100,7 +100,8 @@ fi
# or if the cron-job hasn't been set up yet.
# Do this right before the curl call to minimize odds for a race condition
if [ -e "/etc/cron.d/usage_stats" ] && ! [ -e "/run/openslx/shutdown.mutex" ]; then
- curl --retry 3 --retry-connrefused -m 6 -s --data-urlencode "type=~runstate" --data-urlencode "uuid=$UUID" \
+ curl --retry 3 --retry-connrefused --connect-timeout 3 --max-time 15 --retry-max-time 20 -s \
+ --data-urlencode "type=~runstate" --data-urlencode "uuid=$UUID" \
--data-urlencode "used=$USED" \
--data-urlencode "user=$Name" --data-urlencode "tmpsize=$TMP_SIZE" --data-urlencode "tmpfree=$TMP_FREE" \
--data-urlencode "id45size=$ID45_SIZE" --data-urlencode "id45free=$ID45_FREE" \
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_report b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_report
index 5a93742e..464b9742 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_report
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_report
@@ -62,7 +62,7 @@ report_hardware_info() {
# got everything, get the last infos
uptime=$(grep -oE '^[0-9]+' /proc/uptime)
echo -n "Submitting to '$SLX_REMOTE_LOG' ... "
- curl --retry 4 --retry-connrefused --max-time 8 --retry-max-time 15 \
+ curl --retry 4 --retry-connrefused --connect-timeout 3 --max-time 9 --retry-max-time 18 \
--data-urlencode "type=~poweron" --data-urlencode "uuid=$uuid" --data-urlencode "macaddr=$HW_MAC" \
--data-urlencode "uptime=$uptime" --data-urlencode "realcores=$HW_CORES" \
--data-urlencode "vcores=$HW_THREADS" \