Changes

From SME Server
Jump to navigationJump to search
812 bytes added ,  13:58, 14 October 2008
New page: A couple questions about ''Interval'': The comments (and the wiki) state that I can change the reporting Interval using "week", "fortnight", or "month", eg: config setprop mailstats Inte...
A couple questions about ''Interval'':

The comments (and the wiki) state that I can change the reporting Interval using "week", "fortnight", or "month", eg:
config setprop mailstats Interval week

However, the specific code looks for "weekly", "fortnightly", "monthly":
<code>my $interval = $cdb->get('mailstats')->prop('Interval') || 'daily';
if ($interval eq "weekly") {
$secsininterval = 86400*7;
} elsif ($interval eq "fortnightly") {
$secsininterval = 86400*14;
} elsif ($interval eq "monthly") {
$secsininterval = 86400;
} elsif ($interval =~m/\d+/) {
$secsininterval = $interval*3600;
};</code>

so, does "week" eq "weekly" in perl (I don't know the answer)?

Also, it looks as though month/monthly sets the interval to 86400 rather than 86400*30?

[[User:Mmccarn|Mmccarn]] 11:58, 14 October 2008 (UTC)

Navigation menu