From 5f2bc87b2244382fdff968df9e643722fcf26a68 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Jun 2021 00:16:13 +0200 Subject: lease-script: drop the delay magic... ... as this should be handled by $ScriptLock in lease scripts now. --- lease-script | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lease-script b/lease-script index eacba9f..537c832 100644 --- a/lease-script +++ b/lease-script @@ -12,7 +12,6 @@ :global IfThenElse; :global LogPrintExit2; -:global RandomDelay; :if ([ :typeof $leaseActIP ] = "nothing" || \ [ :typeof $leaseActMAC ] = "nothing" || \ @@ -26,11 +25,6 @@ $LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . \ $State . "ed lease " . $leaseActIP . " to " . $leaseActMAC) false; -# delay a moment to update the lease table, do not run in parallel for de/assign... -:delay ((1 + $leaseBound) . "s"); -# ... or simultaneous deassign -$RandomDelay (([ :tonum $leaseBound ] ^ 1) * 750) "ms"; - :foreach Script in=[ / system script find where source~("\n# provides: lease-script " . $State . "\n") ] do={ :local ScriptName [ / system script get $Script name ]; :do { -- cgit v1.2.3-54-g00ecf