Changeset 199

Show
Ignore:
Timestamp:
11/24/10 22:18:25 (3 years ago)
Author:
depesz
Message:

comparing the same variable is stupid. I should compare with previous stamp to know if I should swap files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/system_monitoring.pl

    r198 r199  
    139139 
    140140    my $file_suffix = strftime( '-%Y-%m-%d-%H.log', localtime( $self->{ 'current_time' } ) ); 
    141     return if ( defined $self->{ 'previous-suffix' } ) && ( $file_suffix eq $file_suffix ); 
     141    return if ( defined $self->{ 'previous-suffix' } ) && ( $self->{ 'previous-suffix' } eq $file_suffix ); 
    142142    $self->{ 'previous-suffix' } = $file_suffix; 
    143143