From ddedf0443d3560f54b7fd5e6f4d22abb140dc8f3 Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Wed, 2 Jul 2014 14:54:07 -0300 Subject: [PATCH] incluindo comparação de 7 dias em maquinas acessadas --- src/Cacic/CommonBundle/Controller/DefaultController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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