fix status page
authorIvan Kohler <ivan@freeside.biz>
Tue, 12 Aug 2014 04:32:34 +0000 (21:32 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 12 Aug 2014 04:32:34 +0000 (21:32 -0700)
httemplate/view/Status.html

index 8dddd14..b5da5e3 100644 (file)
@@ -135,11 +135,11 @@ if ( _is_running('cdrd') ) {
     },
   ];
 
-  my $24ago = 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 > '$24ago'
+        AND calldate > '$dayago'
   });
   $status{'CDR Processing'} = [
     { 'title' => 'Unprocessed CDRs (last 24 hours)',