mirror of https://github.com/BOINC/boinc.git
web: don't show host cache size if we don't know it
This commit is contained in:
parent
f03c4a0393
commit
2ad0e83417
|
@ -124,9 +124,11 @@ function show_host($host, $user, $ipprivate) {
|
|||
$x = $host->m_nbytes/(1024*1024);
|
||||
$y = round($x, 2);
|
||||
row2(tra("Memory"), tra("%1 MB", $y));
|
||||
if ($host->m_cache > 0) {
|
||||
$x = $host->m_cache/1024;
|
||||
$y = round($x, 2);
|
||||
row2(tra("Cache"), tra("%1 KB", $y));
|
||||
}
|
||||
|
||||
if ($user) {
|
||||
$x = $host->m_swap/(1024*1024);
|
||||
|
|
Loading…
Reference in New Issue