From 805ba1b05f9992dac7c05ea404ef5c3fe1bcf715 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 29 Oct 2014 20:13:21 -0700 Subject: [PATCH] Make the code for various intervals more similar. --- MobileCydia.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.50.0