From 086d32a09fb75b46539ebe078b69b66985209e14 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Tue, 6 Aug 2024 16:09:59 +0530 Subject: [PATCH] Update index.tsx --- src/services/components/service/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/components/service/index.tsx b/src/services/components/service/index.tsx index 6eb19be54b8e..45f603630d48 100644 --- a/src/services/components/service/index.tsx +++ b/src/services/components/service/index.tsx @@ -34,7 +34,7 @@ const ServiceItem: FunctionComponent = ({ item }) => { const calculateUpTime = () => { let successCount = item.logs.filter((item)=> item.status === Status.OPERATIONAL).length - return Math.round((successCount * 100) / 30); + return Math.round((successCount * 100) / 90); } return ( @@ -43,7 +43,7 @@ const ServiceItem: FunctionComponent = ({ item }) => {

{item.name}

-

{calculateUpTime()}% operational in last 30 days

+

{calculateUpTime()}% operational in last 90 days