diff --git a/html/inc/host.inc b/html/inc/host.inc
index 93045b5d23..44d4a68f6c 100644
--- a/html/inc/host.inc
+++ b/html/inc/host.inc
@@ -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));
- $x = $host->m_cache/1024;
- $y = round($x, 2);
- row2(tra("Cache"), tra("%1 KB", $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);