mirror of
https://github.com/restic/restic.git
synced 2025-08-13 07:17:37 +00:00
fix Unix to UnixNano
This commit is contained in:
@@ -143,7 +143,7 @@ func monitorLockRefresh(ctx context.Context, lock *restic.Lock, lockInfo *lockCo
|
||||
debug.Log("terminate expiry monitoring")
|
||||
return
|
||||
case <-refreshed:
|
||||
lastRefresh = time.Now().Unix()
|
||||
lastRefresh = time.Now().UnixNano()
|
||||
case <-timer.C:
|
||||
if time.Now().UnixNano()-lastRefresh < refreshabilityTimeout.Nanoseconds() {
|
||||
// restart timer
|
||||
|
Reference in New Issue
Block a user