aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--html/index.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/html/index.html b/html/index.html
index c783367..3672cad 100644
--- a/html/index.html
+++ b/html/index.html
@@ -256,12 +256,10 @@ function docker_container_format_status(info) {
result += ` (${info.exit_code})`;
if (info.status == 'running') {
- if (info.health == 'unhealthy') {
- result = 'Up (unhealthy)';
- } else {
- let since = new Date(info.started_at);
- result = `Up ${format_duration(Date.now() - since)}`;
- }
+ let since = new Date(info.started_at);
+ result = `Up ${format_duration(Date.now() - since)}`;
+ if (info.health == 'unhealthy')
+ result = `${result} (unhealthy)`;
}
return result;