1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix milliseconds in delay

This commit is contained in:
Ben Hardill 2013-11-30 18:08:44 +00:00
parent f2ed2365cd
commit 4b3f26bed5

View File

@ -41,7 +41,7 @@ function DelayNode(n) {
this.rateUnits = n.rateUnits; this.rateUnits = n.rateUnits;
if (n.timeoutUnits === "milliseconds") { if (n.timeoutUnits === "milliseconds") {
this.timeout = n.timout; this.timeout = n.timeout;
} else if (n.timeoutUnits === "seconds") { } else if (n.timeoutUnits === "seconds") {
this.timeout = n.timeout * 1000; this.timeout = n.timeout * 1000;
} else if (n.timeoutUnits === "minutes") { } else if (n.timeoutUnits === "minutes") {