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 f2e7b40

Browse filesBrowse files
authored
Correct algebra in hub4j#327
1 parent 4ee3086 commit f2e7b40
Copy full SHA for f2e7b40

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.