# correct 1st run DHCP latency
This commit is contained in:
parent
d15d5ca9c1
commit
e9d0be5ecf
|
@ -81,6 +81,7 @@ while true; do
|
||||||
|
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||||
|
[[ ${myIP} == "" ]] && source "${MY_PATH}/tools/my.sh" ## correct 1st run DHCP latency
|
||||||
|
|
||||||
lastrun=$(cat ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats)
|
lastrun=$(cat ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats)
|
||||||
duree=$(expr ${MOATS} - $lastrun)
|
duree=$(expr ${MOATS} - $lastrun)
|
||||||
|
|
Loading…
Reference in New Issue