From 6345e4272142efc1327dbaf13303f199a94f020b Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 5 Nov 2022 23:08:51 -0500 Subject: [PATCH] Reduce danger and warning windows: Danger: 14 days Warning: 30 days --- node_app/get_cert_info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_app/get_cert_info.js b/node_app/get_cert_info.js index fe92960..ac7a46e 100644 --- a/node_app/get_cert_info.js +++ b/node_app/get_cert_info.js @@ -55,9 +55,9 @@ function get_cert_parameters(element, index, array) { } }; - if (parsed.info.days_left <= 30 ){ + if (parsed.info.days_left <= 14 ){ parsed.info.background_class = 'danger'; - } else if (parsed.info.days_left > 30 && parsed.info.days_left <= 60 ) { + } else if (parsed.info.days_left <= 30 ) { parsed.info.background_class = 'warning'; } else { parsed.info.background_class = 'success';