diff options
author | ramon <ramongomez@us.es> | 2017-05-31 16:23:54 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-05-31 16:23:54 +0000 |
commit | 27810beae9c2d4a8655fbb4f71f752c0c19c5c66 (patch) | |
tree | 452e781ad48a792b9d68c9a951c4d5f147d898d2 /admin/WebConsole/includes/pintaParticiones.php | |
parent | 5e7555dc5a0092d68a8fe11853fe50169a7adc17 (diff) |
#747: Corregir fallo al detectar porcentaje de uso en grupos de ordenadores que tienen distinto nĂºmero de discos.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5327 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/includes/pintaParticiones.php')
-rw-r--r-- | admin/WebConsole/includes/pintaParticiones.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/pintaParticiones.php b/admin/WebConsole/includes/pintaParticiones.php index d43f3d26..f9575b1b 100644 --- a/admin/WebConsole/includes/pintaParticiones.php +++ b/admin/WebConsole/includes/pintaParticiones.php @@ -113,8 +113,9 @@ function pintaParticiones($cmd,$configuraciones,$idordenadores,$cc) echo '<td align="center"> '.tomaNombresSO($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' </td>'.chr(13); // Mostrar uso solo en clientes individuales. - if ($tbKeys[$k]["uso"] > 0 and strpos($idordenadores, ',') === false) { - echo'<td style="text-align:right; background-image:url(../images/flotantes/lsu.gif); background-size:'.$tbKeys[$k]["uso"].'% 100%; background-repeat:no-repeat"><a title="'.$TbMsg["USAGE"].': '.$tbKeys[$k]["uso"].'%"> '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' </a></td>'.chr(13); + $uso=tomaUso($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]); + if ($uso > 0 and strpos($idordenadores, ',') === false) { + echo'<td style="text-align:right; background-image:url(../images/flotantes/lsu.gif); background-size:'.$uso.'% 100%; background-repeat:no-repeat"><a title="'.$TbMsg["USAGE"].': '.$uso.'%"> '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' </a></td>'.chr(13); } else { echo'<td style="text-align:right"> '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' </td>'.chr(13); } |