mirror of
https://github.com/restic/restic.git
synced 2025-02-20 21:27:21 +00:00
fix Unix to UnixNano
This commit is contained in:
parent
b57d42905c
commit
b06427c9f6
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ func monitorLockRefresh(ctx context.Context, lock *restic.Lock, lockInfo *lockCo
|
||||||
debug.Log("terminate expiry monitoring")
|
debug.Log("terminate expiry monitoring")
|
||||||
return
|
return
|
||||||
case <-refreshed:
|
case <-refreshed:
|
||||||
lastRefresh = time.Now().Unix()
|
lastRefresh = time.Now().UnixNano()
|
||||||
case <-timer.C:
|
case <-timer.C:
|
||||||
if time.Now().UnixNano()-lastRefresh < refreshabilityTimeout.Nanoseconds() {
|
if time.Now().UnixNano()-lastRefresh < refreshabilityTimeout.Nanoseconds() {
|
||||||
// restart timer
|
// restart timer
|
||||||
|
|
Loading…
Reference in a new issue