diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | lib/Smokeping.pm | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +* use localtime to construct the rawlog filename + --tobi as reported by Kent Kuriyama + * allow slave names to have . in them but not target sections. --tobi 2008/4/26 -- released version 2.3.6 diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 1da8157..8437944 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1896,7 +1896,7 @@ sub update_rrds($$$$$$) { for my $update (sort {$a->[1] <=> $b->[1]} @updates){ # make sure we put the updates in chronological order in my $s = $update->[0] ? "~".$update->[0] : ""; if ( $tree->{rawlog} ){ - my $file = POSIX::strftime $tree->{rawlog},$update->[1]; + my $file = POSIX::strftime $tree->{rawlog},localtime($update->[1]); if (open LOG,">>$name$s.$file.csv"){ print LOG time,"\t",join("\t",split /:/,$update->[2]),"\n"; close LOG; |