Author: Paolo Lulli <paolo@lulli.net>
Fix exit condition
client/main.go | 2 +-
diff --git a/client/main.go b/client/main.go
index 4dd423392144d63b74bdb3d1c257cc1a61835a83..2bb9c987373ad8949fe8a93e8fce0d0799928cd0 100644
--- a/client/main.go
+++ b/client/main.go
@@ -301,7 +301,7 @@ func stopSearching(maxpage int64, toTimestamp int64) bool {
if toTimestamp == 0 {
return false
}
- if toTimestamp > maxpage {
+ if maxpage >= toTimestamp {
return false
}
return true