Changeset 75


Ignore:
Timestamp:
11/30/05 10:43:54 (19 years ago)
Author:
thauvin
Message:
  • use configtime
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData/Repository.pm

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r73 r75  
    149149        # Comparing time of the conf with time of conf during last process 
    150150        # if config has changed, maybe something better will happend 
    151         my $configtime = (stat($self->{obsdata}->{config}->GetFileName))[9]; 
    152         if (defined($oldconftime) && $configtime <= $oldconftime) { 
     151        if (defined($oldconftime) && $self->{obsdata}->config_mtime <= $oldconftime) { 
    153152            $conftimeok = 1; 
    154153        } 
     
    163162                ); 
    164163            } elsif (!$conftimeok) { 
    165                 $self->loging(0, "config has changed since last process: %d vs %d, retrying it", 
    166                     $oldconftime, 
    167                     $configtime 
     164                $self->loging(0, "config has changed since last process: %s vs %d, retrying it", 
     165                    $oldconftime || '(none)', 
     166                    $self->{obsdata}->config_mtime 
    168167                ); 
    169168                return 1; 
     
    201200    $self->{status}->newval($self->{archivefile}, 'size', $filestats[7]); 
    202201 
    203     my $configtime = (stat($self->{obsdata}->{config}->GetFileName))[9]; 
    204     $self->{status}->newval($self->{archivefile}, 'configtime', $configtime); 
     202    $self->{status}->newval($self->{archivefile}, 'configtime', $self->{obsdata}->config_mtime); 
    205203} 
    206204 
Note: See TracChangeset for help on using the changeset viewer.