Commit ddedf0443d3560f54b7fd5e6f4d22abb140dc8f3
1 parent
65f25a87
Exists in
master
and in
1 other branch
incluindo comparação de 7 dias em maquinas acessadas
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/Cacic/CommonBundle/Controller/DefaultController.php
| ... | ... | @@ -17,8 +17,10 @@ class DefaultController extends Controller |
| 17 | 17 | 'totalCompMonitorados' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countAll(), |
| 18 | 18 | 'totalInsucessosInstalacao' => $this->getDoctrine()->getRepository('CacicCommonBundle:InsucessoInstalacao')->countAll(), |
| 19 | 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 | 25 | return $this->render( |
| 24 | 26 | 'CacicCommonBundle:Default:index.html.twig', | ... | ... |