Skip to content

Commit

Permalink
Correct algebra in hub4j#327
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc authored Jan 10, 2017
1 parent 4ee3086 commit f2e7b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GitHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public GHRateLimit getRateLimit() throws IOException {
GHRateLimit r = new GHRateLimit();
r.limit = r.remaining = 1000000;
long hour = 60L * 60L; // this is madness, storing the date as seconds in a Date object
r.reset = new Date((System.currentTimeMillis() + hour) / 1000L );
r.reset = new Date(System.currentTimeMillis() / 1000L + hour);
return rateLimit = r;
}
}
Expand Down

0 comments on commit f2e7b40

Please sign in to comment.