]> git.uio.no Git - usit-rt.git/blobdiff - lib/RT/Interface/Web/Session.pm
Upgrade to 4.0.13
[usit-rt.git] / lib / RT / Interface / Web / Session.pm
index d13bd8bcd551fa85e2d4904e9bb55875b77d9d2f..4edd9bd2e7b64c67268d725b812fc8cdc1da05b2 100644 (file)
@@ -207,8 +207,8 @@ sub _ClearOldDir {
 
     foreach my $id( @{ $self->Ids } ) {
         if( int $older_than ) {
-            my $ctime = (stat(File::Spec->catfile($dir,$id)))[9];
-            if( $ctime > $now - $older_than ) {
+            my $mtime = (stat(File::Spec->catfile($dir,$id)))[9];
+            if( $mtime > $now - $older_than ) {
                 $RT::Logger->debug("skipped session '$id', isn't old");
                 next;
             }