Commit ddedf0443d3560f54b7fd5e6f4d22abb140dc8f3

Authored by Bruno Menezes
1 parent 65f25a87
Exists in master and in 1 other branch 3.1

incluindo comparação de 7 dias em maquinas acessadas

src/Cacic/CommonBundle/Controller/DefaultController.php
@@ -17,8 +17,10 @@ class DefaultController extends Controller @@ -17,8 +17,10 @@ class DefaultController extends Controller
17 'totalCompMonitorados' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countAll(), 17 'totalCompMonitorados' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countAll(),
18 'totalInsucessosInstalacao' => $this->getDoctrine()->getRepository('CacicCommonBundle:InsucessoInstalacao')->countAll(), 18 'totalInsucessosInstalacao' => $this->getDoctrine()->getRepository('CacicCommonBundle:InsucessoInstalacao')->countAll(),
19 'totalCompPorSO' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countPorSO30Dias(), 19 'totalCompPorSO' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countPorSO30Dias(),
20 - 'totalComp' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countPorComputador()  
21 - ); 20 + 'totalComp' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countPorComputador(),
  21 + 'totalComp7Dias' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countComputadorDias('0','7'),
  22 + 'totalComp14Dias' => $this->getDoctrine()->getRepository('CacicCommonBundle:LogAcesso')->countComputadorDias('7','14')
  23 + );
22 24
23 return $this->render( 25 return $this->render(
24 'CacicCommonBundle:Default:index.html.twig', 26 'CacicCommonBundle:Default:index.html.twig',