[freeside-commits] branch master updated. 7cb39d93fc31d93e146d760c22db334790b7b980

Ivan ivan at 420.am
Mon Aug 11 21:38:19 PDT 2014


The branch, master has been updated
       via  7cb39d93fc31d93e146d760c22db334790b7b980 (commit)
      from  4e472eaf8dfd15754fcaaf81047e13f8dd490290 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7cb39d93fc31d93e146d760c22db334790b7b980
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Aug 11 21:38:18 2014 -0700

    fix status page

diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index 38452b9..2ddf7e5 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,
     },

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/Status.html |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)




More information about the freeside-commits mailing list