Changeset 3835

Show
Ignore:
Timestamp:
07/27/10 19:36:14 (2 years ago)
Author:
ligne
Message:

slurp the rest of the file in one go, rather than concatenating it line-by-line.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/node/lib/Munin/Node/SpoolReader.pm

    r3834 r3835  
    8585    } 
    8686 
    87     # FIXME: slurp the rest of the file 
    8887    # FIXME: shouldn't need to add the epoch line back in manually 
    89     return join '', "timestamp $epoch\n", <$fh>; 
     88    local $/;  # slurp the rest of the file 
     89    return "timestamp $epoch\n" . <$fh>; 
    9090} 
    9191