From 780fb010252d7dc709b96c1ffe5014c214cd9abc Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 9 Jul 2010 16:19:58 +0000 Subject: [PATCH] Fixed bug in Session.updateLastActivity --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- Common/dataobjects/Session.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 3801700..4ffc0cd 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -668 \ No newline at end of file +670 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index ffe78b0..cdf1f34 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -401 \ No newline at end of file +403 \ No newline at end of file diff --git a/Common/dataobjects/Session.cs b/Common/dataobjects/Session.cs index 4bf6bda..35712a6 100644 --- a/Common/dataobjects/Session.cs +++ b/Common/dataobjects/Session.cs @@ -92,7 +92,7 @@ namespace FLocal.Common.dataobjects { } public void updateLastActivity() { - if(DateTime.Now.Subtract(this.lastActivity).Seconds < 30) return; //to partially remove db load + if(DateTime.Now.Subtract(this.lastActivity).TotalSeconds < 30) return; //to partially remove db load try { Config.Transactional(transaction => { Config.instance.mainConnection.update(