fix skewed parameter order in respawn code
authorJohn Crispin <blogic@openwrt.org>
Wed, 4 Sep 2013 15:32:15 +0000 (17:32 +0200)
committerJohn Crispin <blogic@openwrt.org>
Fri, 13 Sep 2013 15:35:55 +0000 (17:35 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
instance.c

index 4230d0dddf39430da7537fcb65f96bf0044b06c3..7895a04cc7b03cb74ff3749112bd75c5327e83b1 100644 (file)
@@ -334,8 +334,8 @@ instance_config_parse(struct service_instance *in)
                }
                in->respawn = true;
                in->respawn_count = 0;
-               in->respawn_timeout = vals[0];
-               in->respawn_threshold = vals[1];
+               in->respawn_threshold = vals[0];
+               in->respawn_timeout = vals[1];
                in->respawn_retry = vals[2];
        }
        if (tb[INSTANCE_ATTR_TRIGGER]) {