summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-05-18 15:30:34 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-05-18 15:30:34 +0200
commit6b239270a134ef8f26d59a7ab9b35eeeeceb9c47 (patch)
tree081b7f67a6cb75bf05565593c866b890217f99dc
parentbfa39ae5e98f3d18f43b95a80a0d4315c795e0db (diff)
downloadsmokeping-6b239270a134ef8f26d59a7ab9b35eeeeceb9c47.tar.gz
smokeping-6b239270a134ef8f26d59a7ab9b35eeeeceb9c47.tar.xz
fixed rawlog name
-rw-r--r--CHANGES3
-rw-r--r--lib/Smokeping.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index a9686ac..a51d450 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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;