aggiunto tempo di attesa random su funzione lock per impedire sovrapposizioni concorrenti
This commit is contained in:
@@ -1418,6 +1418,8 @@ list_descendants ()
|
|||||||
#
|
#
|
||||||
function lock {
|
function lock {
|
||||||
|
|
||||||
|
sleep 0.$((100 * $RANDOM / 32767)) | sed 's/..$/.&/'
|
||||||
|
|
||||||
local max_time=10
|
local max_time=10
|
||||||
local current_time=$(($1 + 1))
|
local current_time=$(($1 + 1))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user