mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 13:05:57 +00:00
propagate from branch 'ca.inverse.sogo.1_3_17' (head aadc4759a64f724760d38bbdfd92715182856439)
to branch 'ca.inverse.sogo' (head aa6b7008cf5e7d5a1375822a416d0578868197db) Monotone-Parent: aa6b7008cf5e7d5a1375822a416d0578868197db Monotone-Parent: aadc4759a64f724760d38bbdfd92715182856439 Monotone-Revision: 29b92cb0e2207332af7eb0b8097b4cc79b5ee43d Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-06-21T15:52:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
return rc=NO;
|
||||
}
|
||||
|
||||
sql = [NSString stringWithFormat: @"SELECT count(*) FROM %@ WHERE c_lastseen <= %d;",
|
||||
sql = [NSString stringWithFormat: @"SELECT count(*) FROM %@ WHERE c_lastseen <= %d",
|
||||
[tableURL gcsTableName], oldest];
|
||||
ex = [channel evaluateExpressionX: sql];
|
||||
if (ex)
|
||||
@@ -129,7 +129,7 @@
|
||||
if (verbose)
|
||||
NSLog(@"Will be removing %d sessions", sessionsToDelete);
|
||||
[channel cancelFetch];
|
||||
sql = [NSString stringWithFormat: @"DELETE FROM %@ WHERE c_lastseen <= %d;",
|
||||
sql = [NSString stringWithFormat: @"DELETE FROM %@ WHERE c_lastseen <= %d",
|
||||
[tableURL gcsTableName], oldest];
|
||||
if (verbose)
|
||||
NSLog(@"Removing sessions older than %d minute(s)", nbMinutes);
|
||||
|
||||
Reference in New Issue
Block a user