X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2FStatus.html;h=2ddf7e5a0266ec305bdf157fff851553dc7b428b;hb=d8950e63d6c3f6fb910c28077e3a3e054ad12388;hp=b5da5e3f5bf9883af1f5986835f962717155a2e8;hpb=c9b357c3316c2ed2b6697775150cf731eaf4236a;p=freeside.git diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html index b5da5e3f5..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,19 +124,21 @@ 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 $dayago = time2str('%Y-%m-%d %X', time - 86400); my $cdrs = FS::Record->scalar_sql(qq{ SELECT COUNT(*) FROM cdr 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, },