restrict inject interval to less that 2^31 millisecs

(596 hrs, 24 days) to stop overflow causing fast loop. (defaults to 0)
to close #1485
This commit is contained in:
Dave Conway-Jones
2018-01-17 09:35:47 +00:00
parent 1921796d6d
commit 558a66fbe5
3 changed files with 12 additions and 4 deletions

View File

@@ -61,10 +61,11 @@
"on": "on",
"onstart": "Inject once after",
"onceDelay": "seconds, then",
"tip": "<b>Note:</b> \"interval between times\" and \"at a specific time\" will use cron.<br/>See info box for details.",
"tip": "<b>Note:</b> \"interval between times\" and \"at a specific time\" will use cron.<br/>\"interval\" should be less than 596 hours.<br/>See info box for details.",
"success": "Successfully injected: __label__",
"errors": {
"failed": "inject failed, see log for details"
"failed": "inject failed, see log for details",
"toolong": "Interval too large"
}
},
"catch": {