IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29077


Ignore:
Timestamp:
Aug 30, 2010, 9:05:36 AM (16 years ago)
Author:
rhenders
Message:

Fixing logical error: now getting today's date in method, not constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/Burntool.pm

    r29048 r29077  
    1616    my $self = {};
    1717    $self->{_verbose} = 0;
    18 
    19     # get today's date
    20     my ($day, $month, $year) = (localtime)[3,4,5];
    21     $self->{_today} = sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day);
    2218
    2319    bless $self, $class;
     
    4339    else {return 0;}
    4440
     41    # get today's date
     42    my ($day, $month, $year) = (localtime)[3,4,5];
     43    my $today = sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day);
    4544
    4645    if ($self->{_verbose}) {print "Checking $target for $self->{_today}\n";}
    47     my $command = "automate_stacks.pl --check_chips --burntool_stats --this_target_only $target --date $self->{_today} ";
     46    my $command = "automate_stacks.pl --check_chips --burntool_stats --this_target_only $target --date $today";
    4847    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    4948                run(command => $command, verbose => $self->{_verbose});
Note: See TracChangeset for help on using the changeset viewer.