Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed May 10, 2002
1 parent dd8c22a commit 2623f81
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions plugins/Stats/Stats.pm
Expand Up @@ -305,23 +305,26 @@ sub countCommentsDaily {
########################################################
sub countBytesByPage {
my($self, $op, $yesterday) = @_;
$self->sqlSelect("sum(bytes)", "accesslog",
"op='$op' AND ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'");
my $where = "op='$op' AND ";
$where .= "ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'";
$self->sqlSelect("sum(bytes)", "accesslog", $where);
}

########################################################
sub countDailyByPage {
my($self, $op, $yesterday) = @_;
$self->sqlSelect("count(*)", "accesslog",
"op='$op' AND ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'");
my $where = "op='$op' AND ";
$where .= "ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'";
$self->sqlSelect("count(*)", "accesslog", $where);
}

########################################################
sub countDailyByPageDistinctIPID {
# This is so lame, and so not ANSI SQL -Brian
my($self, $op, $yesterday) = @_;
$self->sqlSelect("count(DISTINCT host_addr)", "accesslog",
"op='$op' AND ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'");
my $where = "op='$op' AND ";
$where .= "ts BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'";
$self->sqlSelect("count(DISTINCT host_addr)", "accesslog", $where);
}

########################################################
Expand Down

0 comments on commit 2623f81

Please sign in to comment.