projects
/
dweather.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
display speeds in mph rather than m/s
[dweather.git]
/
SMGLog.pm
diff --git
a/SMGLog.pm
b/SMGLog.pm
index e826a5301a964584854e080778ce507db24f4c3f..9adf77a75a977d4d7cf01badb9e79aaa29f6fd23 100644
(file)
--- a/
SMGLog.pm
+++ b/
SMGLog.pm
@@
-53,6
+53,7
@@
sub new
my $dir = "$path/$prefix";
$ref->{prefix} = $dir;
$ref->{suffix} = $suffix || 'log';
+ $ref->{dayno} = int (time / 86400);
# make sure the directory exists
mkpath($dir, 0, 0777) unless -d $dir;