mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 20:38:50 +00:00
cast correct type
This commit is contained in:
@@ -2476,17 +2476,17 @@ void handle_eas_terminate(int signum)
|
||||
defaultInterval = [defaults maximumPingInterval];
|
||||
internalInterval = [defaults internalSyncInterval];
|
||||
sleepInterval = (internalInterval < 5) ? 5 : internalInterval;
|
||||
NSLog(@"EASLOG: processPing, defaults found defaultInterval: %@, internalInterval: %@, sleepInterval: %@", defaultInterval, internalInterval, sleepInterval);
|
||||
NSLog(@"EASLOG: processPing, defaults found defaultInterval: %d, internalInterval: %d, sleepInterval: %d", defaultInterval, internalInterval, sleepInterval);
|
||||
|
||||
if (theDocumentElement)
|
||||
{
|
||||
heartbeatInterval = [[[(id)[theDocumentElement getElementsByTagName: @"HeartbeatInterval"] lastObject] textValue] intValue];
|
||||
NSLog(@"EASLOG: processPing, heartbeatInterval found in document: %@", heartbeatInterval);
|
||||
NSLog(@"EASLOG: processPing, heartbeatInterval found in document: %d", heartbeatInterval);
|
||||
}
|
||||
else
|
||||
{
|
||||
heartbeatInterval = defaultInterval;
|
||||
NSLog(@"EASLOG: processPing, heartbeatInterval NOT found in document: %@", heartbeatInterval);
|
||||
NSLog(@"EASLOG: processPing, heartbeatInterval NOT found in document: %d", heartbeatInterval);
|
||||
}
|
||||
|
||||
if (heartbeatInterval > defaultInterval || heartbeatInterval == 0)
|
||||
@@ -2616,7 +2616,7 @@ void handle_eas_terminate(int signum)
|
||||
{
|
||||
// We check if we must break the current ping request since an other ping request
|
||||
// has just arrived.
|
||||
NSLog(@"EASLOG: processPing, while loop for changes start. total_sleep: %@, internalInterval: %@", total_sleep, internalInterval);
|
||||
NSLog(@"EASLOG: processPing, while loop for changes start. total_sleep: %d, internalInterval: %d", total_sleep, internalInterval);
|
||||
pingRequestInCache = [[self globalMetadataForDevice] objectForKey: @"PingRequest"];
|
||||
if (pingRequestInCache && ![pingRequestInCache isEqualToString: processIdentifier])
|
||||
{
|
||||
|
||||
@@ -1030,7 +1030,7 @@ NSComparisonResult languageSort(id el1, id el2, void *context)
|
||||
v = 10;
|
||||
}
|
||||
else {
|
||||
NSLog(@"EASLOG: SOGoInternalSyncInterval found, value is %@", v);
|
||||
NSLog(@"EASLOG: SOGoInternalSyncInterval found, value is %d", v);
|
||||
}
|
||||
|
||||
return v;
|
||||
|
||||
Reference in New Issue
Block a user