From: Jay Freeman (saurik) Date: Thu, 30 Oct 2014 03:13:21 +0000 (-0700) Subject: Make the code for various intervals more similar. X-Git-Tag: v1.1.14~13 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/805ba1b05f9992dac7c05ea404ef5c3fe1bcf715 Make the code for various intervals more similar. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 68bd2b28..b752ecc2 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; }