mirror of
https://github.com/Lissy93/web-check.git
synced 2025-01-23 22:59:17 +01:00
Fixes changes per day / scan calculation
This commit is contained in:
parent
56ee47fef4
commit
d38f2ae384
@ -36,8 +36,8 @@ const getScanFrequency = (firstScan, lastScan, totalScans, changeCount) => {
|
||||
const dayFactor = (lastScan - firstScan) / (1000 * 60 * 60 * 24);
|
||||
const daysBetweenScans = formatToTwoDecimal(dayFactor / totalScans);
|
||||
const daysBetweenChanges = formatToTwoDecimal(dayFactor / changeCount);
|
||||
const scansPerDay = formatToTwoDecimal((totalScans - 1) / daysBetweenScans);
|
||||
const changesPerDay = formatToTwoDecimal(changeCount / daysBetweenScans);
|
||||
const scansPerDay = formatToTwoDecimal((totalScans - 1) / dayFactor);
|
||||
const changesPerDay = formatToTwoDecimal(changeCount / dayFactor);
|
||||
return {
|
||||
daysBetweenScans,
|
||||
daysBetweenChanges,
|
||||
|
Loading…
Reference in New Issue
Block a user