fix-3.0.4

This commit is contained in:
Carlos Salguero
2017-07-10 21:08:07 -03:00
parent c01d26ae63
commit 2416dd0dd4
4 changed files with 18 additions and 16 deletions

View File

@@ -58,8 +58,8 @@ func GetOplogInfo(hostnames []string, di *pmgo.DialInfo) ([]proto.OplogInfo, err
}
// https://docs.mongodb.com/manual/reference/bson-types/#timestamps
tfirst := firstRow.Ts >> 32
tlast := lastRow.Ts >> 32
tfirst := firstRow.Timestamp >> 32
tlast := lastRow.Timestamp >> 32
result.TimeDiff = tlast - tfirst
result.TimeDiffHours = float64(result.TimeDiff) / 3600