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 0cd5147

Browse filesBrowse files
committed
1 parent 36d5b09 commit 0cd5147
Copy full SHA for 0cd5147

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
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
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import java.util.Map;
4949
import java.util.Set;
5050
import java.util.TimeZone;
51-
import java.util.concurrent.TimeUnit;
5251

5352
import org.apache.commons.codec.Charsets;
5453
import org.apache.commons.codec.binary.Base64;
@@ -264,7 +263,8 @@ public GHRateLimit getRateLimit() throws IOException {
264263
// see issue #78
265264
GHRateLimit r = new GHRateLimit();
266265
r.limit = r.remaining = 1000000;
267-
r.reset = new Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(1));
266+
long hours = 1000L * 60 * 60;
267+
r.reset = new Date(System.currentTimeMillis() + 1 * hours );
268268
return r;
269269
}
270270
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.