Changeset 3421

Show
Ignore:
Timestamp:
03/15/10 22:58:34 (5 months ago)
Author:
steve.schnepp
Message:

- load $config once (thx Jani M.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/master/lib/Munin/Master/GraphOld.pm

    r3416 r3421  
    249249    exit_if_run_by_super_user(); 
    250250 
    251     $config = &munin_config($conffile); 
     251    # Only read $config once (thx Jani M.) 
     252    # TODO - should maybe stat() the conf file to dyna reload the conf 
     253    $config = &munin_config($conffile) if ! $config; 
    252254 
    253255    # untaint the $log_file variable