Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed transfer expiration timestamps to match
  • Loading branch information
Marko Mattila committed Jul 1, 2013
1 parent 513cf65 commit 01ee65c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transferengine.cpp
Expand Up @@ -48,7 +48,7 @@
#define SHARE_PLUGINS_PATH "/usr/lib/nemo-transferengine/plugins"
#define CONFIG_PATH "/usr/share/nemo-transferengine/nemo-transfer-engine.conf"
#define FILE_WATCHER_TIMEOUT 5000
#define ACTIVITY_MONITOR_TIMEOUT 3*60*1000 // 3 minutes in ms
#define ACTIVITY_MONITOR_TIMEOUT 1*60*1000 // 1 minutes in ms
#define TRANSFER_EXPIRATION_THRESHOLD 3*60 // 3 minutes in seconds

TransferEngineSignalHandler * TransferEngineSignalHandler::instance()
Expand Down Expand Up @@ -119,7 +119,7 @@ void ClientActivityMonitor::checkActivity()
// Check if there are existing transfers which are not yet finished and
// they've been around too long. Notify TransferEngine about these transfers.
QList<int> ids;
quint32 currTime = QDateTime::currentDateTime().toTime_t();
quint32 currTime = QDateTime::currentDateTimeUtc().toTime_t();
QMap<int, quint32>::const_iterator i = m_activityMap.constBegin();
while (i != m_activityMap.constEnd()) {
if ((currTime - i.value()) >= TRANSFER_EXPIRATION_THRESHOLD) {
Expand Down

0 comments on commit 01ee65c

Please sign in to comment.