summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-11 21:38:18 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-11 21:38:18 -0700
commit7cb39d93fc31d93e146d760c22db334790b7b980 (patch)
tree5bbda53bce9e22256bce39882bfee219c547d41b
parent4e472eaf8dfd15754fcaaf81047e13f8dd490290 (diff)
fix status page
-rw-r--r--httemplate/view/Status.html17
1 files changed, 7 insertions, 10 deletions
diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index 38452b997..2ddf7e5a0 100644
--- a/httemplate/view/Status.html
+++ b/httemplate/view/Status.html
@@ -106,11 +106,6 @@ if ( _is_running('cdrd') ) {
$s. 's';
}
- $status{'CDR Processing'} = [
- { 'title' => 'Current processing delay',
- 'value' => $delay,
- },
- ];
my $pr_delay = FS::Record->scalar_sql('
SELECT AVG(end_date-start_date)
@@ -129,11 +124,6 @@ if ( _is_running('cdrd') ) {
$s. 's';
}
- $status{'CDR Processing'} = [
- { 'title' => 'Average billing time',
- 'value' => $pr_delay,
- },
- ];
my $dayago = time2str('%Y-%m-%d %X', time - 86400);
my $cdrs = FS::Record->scalar_sql(qq{
@@ -141,7 +131,14 @@ if ( _is_running('cdrd') ) {
WHERE ( freesidestatus IS NULL OR freesidestatus = '' )
AND calldate > '$dayago'
});
+
$status{'CDR Processing'} = [
+ { 'title' => 'Current processing delay',
+ 'value' => $delay,
+ },
+ { 'title' => 'Average billing time',
+ 'value' => $pr_delay,
+ },
{ 'title' => 'Unprocessed CDRs (last 24 hours)',
'value' => $cdrs,
},