projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix status page
[freeside.git]
/
httemplate
/
view
/
Status.html
diff --git
a/httemplate/view/Status.html
b/httemplate/view/Status.html
index
38452b9
..
2ddf7e5
100644
(file)
--- a/
httemplate/view/Status.html
+++ b/
httemplate/view/Status.html
@@
-106,11
+106,6
@@
if ( _is_running('cdrd') ) {
$s. 's';
}
$s. 's';
}
- $status{'CDR Processing'} = [
- { 'title' => 'Current processing delay',
- 'value' => $delay,
- },
- ];
my $pr_delay = FS::Record->scalar_sql('
SELECT AVG(end_date-start_date)
my $pr_delay = FS::Record->scalar_sql('
SELECT AVG(end_date-start_date)
@@
-129,11
+124,6
@@
if ( _is_running('cdrd') ) {
$s. 's';
}
$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{
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'
});
WHERE ( freesidestatus IS NULL OR freesidestatus = '' )
AND calldate > '$dayago'
});
+
$status{'CDR Processing'} = [
$status{'CDR Processing'} = [
+ { 'title' => 'Current processing delay',
+ 'value' => $delay,
+ },
+ { 'title' => 'Average billing time',
+ 'value' => $pr_delay,
+ },
{ 'title' => 'Unprocessed CDRs (last 24 hours)',
'value' => $cdrs,
},
{ 'title' => 'Unprocessed CDRs (last 24 hours)',
'value' => $cdrs,
},