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 4230d0d..7895a04 100644 (file)
@@ -334,8 +334,8 @@ instance_config_parse(struct service_instance *in)
                }
                in->respawn = true;
                in->respawn_count = 0;
                }
                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]) {
                in->respawn_retry = vals[2];
        }
        if (tb[INSTANCE_ATTR_TRIGGER]) {