summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-29 20:13:21 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-29 20:13:21 -0700
commit805ba1b05f9992dac7c05ea404ef5c3fe1bcf715 (patch)
tree3cb04eda388eb714a94f3cb865fbbdd94fc761fe /MobileCydia.mm
parent888667d540945078e5c1638c157057ed0154acb5 (diff)
Make the code for various intervals more similar.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 68bd2b2..b752ecc 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9099,7 +9099,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
bool recently = false;
if (update != nil) {
NSTimeInterval interval([update timeIntervalSinceNow]);
- if (interval <= 0 && interval > -(15*60))
+ if (interval > -(15*60))
recently = true;
}
@@ -9990,7 +9990,6 @@ _trace();
NSDate *closed = [Metadata_ objectForKey:@"LastClosed"];
if (valid && closed != nil) {
NSTimeInterval interval([closed timeIntervalSinceNow]);
- // XXX: Is 30 minutes the optimal time here?
if (interval <= -(30*60))
valid = NO;
}