diff --git a/priv/frontend/src/components/Service.js b/priv/frontend/src/components/Service.js index ecc669a..a6602a8 100644 --- a/priv/frontend/src/components/Service.js +++ b/priv/frontend/src/components/Service.js @@ -24,8 +24,8 @@ const titles = { dead: 'This service is unresponsive.', } -function getServiceState (status, latency) { - if (status && latency > SLOW_THRESHOLD) { +export function getServiceState (status, latency, threshold = SLOW_THRESHOLD) { + if (status && latency > threshold) { return 'slow' }