From: Felix Fietkau Date: Thu, 30 May 2013 10:38:25 +0000 (+0200) Subject: ubus: fix script timeout unit (seconds, not milliseconds) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e2cb17889eb981f836f50d7947e5344f9d9f103;p=oweals%2Fuhttpd.git ubus: fix script timeout unit (seconds, not milliseconds) Signed-off-by: Felix Fietkau --- diff --git a/ubus.c b/ubus.c index 79e077a..22901d8 100644 --- a/ubus.c +++ b/ubus.c @@ -257,7 +257,7 @@ static void uh_ubus_send_request(struct client *cl, json_object *obj, struct blo ubus_complete_request_async(ctx, &du->req); du->timeout.cb = uh_ubus_timeout_cb; - uloop_timeout_set(&du->timeout, conf.script_timeout); + uloop_timeout_set(&du->timeout, conf.script_timeout * 1000); du->req_pending = true; }