diff --git a/authentic-lib.pl b/authentic-lib.pl
index bd1f87bfc..2bfa6ec17 100644
--- a/authentic-lib.pl
+++ b/authentic-lib.pl
@@ -946,8 +946,8 @@ sub get_sysinfo_vars
$uptime_text =~ s/es/e/;
}
}
- $uptime = '' . $uptime_text . '';
-
+ $uptime = !$uptime_text ? undef :
+ (foreign_available("init") ? '' . $uptime_text . '' : $uptime_text);
}
# Running processes