Merge branch 'develop' into fix-timestamps-format
This commit is contained in:
commit
75a2e0deee
2 files changed
+1
-7
No files matched your search
@@ -5,7 +5,7 @@ import { execSync } from "child_process";
|
|||||||
|
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), "");
|
const env = loadEnv(mode, process.cwd(), "");
|
||||||
let version = "3.0-beta";
|
let version = "3.1";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
base: "/",
|
base: "/",
|
||||||
|
|||||||
@@ -152,12 +152,6 @@ class StatusService {
|
|||||||
const failures = monitor.statusWindow.filter((s) => s === false).length;
|
const failures = monitor.statusWindow.filter((s) => s === false).length;
|
||||||
const failureRate = (failures / monitor.statusWindow.length) * 100;
|
const failureRate = (failures / monitor.statusWindow.length) * 100;
|
||||||
|
|
||||||
console.log({
|
|
||||||
failureRate,
|
|
||||||
status: monitor.status,
|
|
||||||
statusWindow: monitor.statusWindow,
|
|
||||||
});
|
|
||||||
|
|
||||||
// If threshold has been met and the monitor is not already down, mark down:
|
// If threshold has been met and the monitor is not already down, mark down:
|
||||||
if (failureRate >= monitor.statusWindowThreshold && monitor.status !== false) {
|
if (failureRate >= monitor.statusWindowThreshold && monitor.status !== false) {
|
||||||
newStatus = false;
|
newStatus = false;
|
||||||
|
|||||||
Reference in new issue
Block a user