diff --git a/src/Cacic/CommonBundle/Controller/DefaultController.php b/src/Cacic/CommonBundle/Controller/DefaultController.php index 0d539c5..b296f25 100644 --- a/src/Cacic/CommonBundle/Controller/DefaultController.php +++ b/src/Cacic/CommonBundle/Controller/DefaultController.php @@ -17,8 +17,10 @@ class DefaultController extends Controller 'totalCompMonitorados' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countAll(), 'totalInsucessosInstalacao' => $this->getDoctrine()->getRepository('CacicCommonBundle:InsucessoInstalacao')->countAll(), 'totalCompPorSO' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countPorSO30Dias(), - 'totalComp' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countPorComputador() - ); + 'totalComp' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countPorComputador(), + 'totalComp7Dias' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countComputadorDias('0','7'), + 'totalComp14Dias' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countComputadorDias('7','14') + ); return $this->render( 'CacicCommonBundle:Default:index.html.twig', -- libgit2 0.21.2