Skip to content

Commit

Permalink
removal of minimum time
Browse files Browse the repository at this point in the history
  • Loading branch information
xvertile committed Jul 12, 2024
1 parent 1a5a1a6 commit 5f1ec49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1490,9 +1490,9 @@ class Monitor extends BeanModel {
if (this.interval > MAX_INTERVAL_SECOND) {
throw new Error(`Interval cannot be more than ${MAX_INTERVAL_SECOND} seconds`);
}
if (this.interval < MIN_INTERVAL_SECOND) {
throw new Error(`Interval cannot be less than ${MIN_INTERVAL_SECOND} seconds`);
}
// if (this.interval < MIN_INTERVAL_SECOND) {
// throw new Error(`Interval cannot be less than ${MIN_INTERVAL_SECOND} seconds`);
// }
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const SQL_DATETIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
export const SQL_DATETIME_FORMAT_WITHOUT_SECOND = "YYYY-MM-DD HH:mm";

export const MAX_INTERVAL_SECOND = 2073600; // 24 days
export const MIN_INTERVAL_SECOND = 20; // 20 seconds
export const MIN_INTERVAL_SECOND = 1; // 20 seconds

// Console colors
// https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color
Expand Down

0 comments on commit 5f1ec49

Please sign in to comment.