9437: Report timestamps as nanoseconds since epoch in keepstore index.
[arvados.git] / services / keep-balance / balance.go
index 2d1a59e8909bc250b2ca995775496f1839adf9f9..fa585d3aeb90e089e16ae041e0a3955f725b3f24 100644 (file)
@@ -199,7 +199,7 @@ func (bal *Balancer) GetCurrentState(c *arvados.Client, pageSize, bufs int) erro
                return err
        }
        bal.DefaultReplication = dd.DefaultCollectionReplication
-       bal.MinMtime = time.Now().Unix() - dd.BlobSignatureTTL
+       bal.MinMtime = time.Now().UnixNano() - dd.BlobSignatureTTL*1e9
 
        errs := make(chan error, 2+len(bal.KeepServices))
        wg := sync.WaitGroup{}