From 6b239270a134ef8f26d59a7ab9b35eeeeceb9c47 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sun, 18 May 2008 13:30:34 +0000 Subject: fixed rawlog name --- lib/Smokeping.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Smokeping.pm') 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; -- cgit v1.2.3-24-g4f1b