Skip to content

Commit

Permalink
Closes #20
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Campbell <[email protected]>
  • Loading branch information
Todd Campbell committed May 10, 2020
1 parent d46f851 commit 9d58cca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.6.2] - 2020-05-10

### Changed
- Updated parameter call for defaults, Otto doesn't support assigning default values in function definition

## [0.6.1] - 2020-05-08

### Changed
Expand Down
6 changes: 3 additions & 3 deletions lib/fatigue_check.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function fatigue_check(event, occurrences=1, interval=1800) {
function fatigue_check(event, occurrences, interval) {

// my defaults
// var occurrences = 1; // only the first occurrence
// var interval = 1800; // and every 30 minutes thereafter
var occurrences = occurrences || 1; // only the first occurrence
var interval = interval || 1800; // and every 30 minutes thereafter
var allow_resolution = true; // allow resolution events through
var suppress_flapping = true; // suppress when flapping

Expand Down

0 comments on commit 9d58cca

Please sign in to comment.