Skip to content

Commit

Permalink
🐛 Round response time to int
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 2, 2020
1 parent 818a2fe commit a1a9cfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/helpers/calculate-response-time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export const getResponseTimeForSite = async (
: "down";

return {
day: avg(daySum) || 0,
week: avg(weekSum) || 0,
month: avg(monthSum) || 0,
year: avg(yearSum) || 0,
all: avg(allSum) || 0,
day: Math.round(avg(daySum) || 0),
week: Math.round(avg(weekSum) || 0),
month: Math.round(avg(monthSum) || 0),
year: Math.round(avg(yearSum) || 0),
all: Math.round(avg(allSum) || 0),
currentStatus,
};
};

0 comments on commit a1a9cfb

Please sign in to comment.