Now with a graph!!
[dweather.git] / 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;