summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index ff1cf65..2188c21 100644
--- a/index.pl
+++ b/index.pl
@@ -96,16 +96,16 @@ get '/2ddata.tsv' => sub {
count(is_canceled) from $table where $where_clause group by aggregate
};
}
- when ('cancel_percent') {
+ when ('cancel_rate') {
$query = qq{
select $format as aggregate,
- avg(is_canceled) * 100 from $table where $where_clause group by aggregate
+ avg(is_canceled) from $table where $where_clause group by aggregate
};
}
- when ('message_percent') {
+ when ('message_rate') {
$query = qq{
select $format as aggregate,
- avg(msgtable.train_id is not null) * 100 from departures
+ avg(msgtable.train_id is not null) from departures
left outer join msg_$msgnum as msgtable using
(scheduled_time, train_id) where $where_clause group by aggregate
};