forked from Twitter4J/Twitter4J
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes inconsistent behavior of RateLimitStatus.
The result between createFromJSONResponse and createFromResponseHeader differed. createFromJSONResponse initialized resetTimeInSeconds with the same value as resetTime.getTime()/1000 while createFromResponseHeader initialized it with the amount of seconds until the next reset. I changed the code to initialize resetTimeInSeconds consistently with resetTime.getTime()/1000 and added another attribute, secondsUntilReset, that is initialized consistently with the amount of seconds until the next reset. I'd usually remove resetTimeInSeconds since it just duplicates the Date but I'll leave that to you. git-svn-id: http://yusuke.homeip.net/svn/twitter4j/trunk@488 117b7e0d-5933-0410-9d29-ab41bb01d86b
- Loading branch information
yusuke
committed
Dec 30, 2009
1 parent
98db677
commit 7422467
Showing
2 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters