Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f4325e

Browse filesBrowse files
authored
Merge pull request hub4j#329 from stephenc/patch-1
Correct algebra in hub4j#327
2 parents 4ee3086 + f2e7b40 commit 1f4325e
Copy full SHA for 1f4325e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GitHub.java
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.