summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-05-14 13:39:41 +0200
committerRamón M. Gómez <ramongomez@us.es>2020-05-14 13:39:41 +0200
commita70996f723a9598c1d653bb615c0b32b263b20d5 (patch)
tree4115e9d63b8fc1134fab95cfc17bd8420ea04300 /admin
parentfe858eb895866fe9bc5e6cb23bfc9206dc73902c (diff)
#947: Fix bug when counting RemotePC-enabled labs.
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/principal/estadisticas.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/principal/estadisticas.php b/admin/WebConsole/principal/estadisticas.php
index eede5aaf..ced1cc58 100644
--- a/admin/WebConsole/principal/estadisticas.php
+++ b/admin/WebConsole/principal/estadisticas.php
@@ -74,7 +74,7 @@ SELECT *
FROM (SELECT nombrecentro AS ou,
COUNT(DISTINCT idaula) AS labs,
COUNT(DISTINCT IF(idordprofesor > 0, idaula, NULL)) AS hasprof,
- COUNT(IF(inremotepc = 1, 1, NULL)) AS remotelab,
+ COUNT(DISTINCT IF(inremotepc = 1, idaula, NULL)) AS remotelab,
COUNT(idordenador) AS clients,
COUNT(numserie) AS hasconfig,
COUNT(IF(idrepositorio > 0, 1, NULL)) AS hasrepo,
@@ -124,4 +124,4 @@ EOT;
function print_data_row($label, $value, $total=0) {
echo "\t\t<tr><th>&nbsp;$label:&nbsp;</th><td>&nbsp;$value" .
($total>0 ? " (".intval($value*100/$total)."%)" : "") . "&nbsp;</td></tr>\n";
-} \ No newline at end of file
+}