Tweak Inject Fire at Once options as per Issue #145

This commit is contained in:
Dave C-J
2014-02-04 21:50:35 +00:00
parent bdd9d901ec
commit b1de42b297
2 changed files with 14 additions and 10 deletions

View File

@@ -32,6 +32,9 @@ function InjectNode(n) {
var node = this;
this.interval_id = null;
this.cronjob = null;
if (this.crontab) {
if (this.crontab.split(" ")[4] != "*") { this.once = false; }
}
if (this.repeat && !isNaN(this.repeat) && this.repeat > 0) {
this.repeat = this.repeat * 1000;