Skip to content

Commit f2e7b40

Browse files
authored
Correct algebra in hub4j#327
1 parent 4ee3086 commit f2e7b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/kohsuke/github/GitHub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public GHRateLimit getRateLimit() throws IOException {
303303
GHRateLimit r = new GHRateLimit();
304304
r.limit = r.remaining = 1000000;
305305
long hour = 60L * 60L; // this is madness, storing the date as seconds in a Date object
306-
r.reset = new Date((System.currentTimeMillis() + hour) / 1000L );
306+
r.reset = new Date(System.currentTimeMillis() / 1000L + hour);
307307
return rateLimit = r;
308308
}
309309
}

0 commit comments

Comments
 (0)