Changeset 1448

Show
Ignore:
Timestamp:
02/07/08 22:43:39 (4 years ago)
Author:
janl
Message:

Hum, that expiery thing has been fixed quite often. Go with the one I liked the best

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/munin-cgi-graph.in

    r1447 r1448  
    4242                "year-sum"  => ["--noday", "--noweek", "--nomonth", "--nosumweek", "--noyear"] 
    4343            ); 
     44 
    4445my %period  = ( "day"   => 300, 
    4546                "week"  => 1800, 
     
    4950                "year-sum" => 86400 
    5051            ); 
     52 
    5153my $log = new IO::Handle; 
    5254my $scale = "day"; 
     
    7779 
    7880    if (defined $ENV{HTTP_IF_MODIFIED_SINCE} and  
    79             !&modified ($ENV{HTTP_IF_MODIFIED_SINCE}, $sstats[9]-1) and 
    80             !&modified (gmtime(time+($period{$scale}-($time%$period{$scale}))), $sstats[9]-1)) 
    81     { 
     81        !&modified (gmtime(time+($period{$scale}-($time%$period{$scale}))), 
     82                    $sstats[9]-1)) { 
    8283        print "Status: 304\n"; 
    8384        print "Content-Type: image/png\n";