diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-03-30 19:37:58 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-03-30 19:37:58 +0300 |
commit | 68c6b67ffc840c78eddd27a65e9bf1370aaf5631 (patch) | |
tree | e53b36a7d4f40976daf52fe7c644c2d311bbb83b /src/test | |
parent | 0935630cba069d6619e967404bb6c7c2a93fbe7e (diff) | |
download | unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.gz unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.bz2 |
Configuration: support for rational numbers.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/nxt_clone_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/nxt_clone_test.c b/src/test/nxt_clone_test.c index 15d36557..64b9ddea 100644 --- a/src/test/nxt_clone_test.c +++ b/src/test/nxt_clone_test.c @@ -588,13 +588,13 @@ nxt_clone_test_parse_map(nxt_task_t *task, nxt_str_t *map_str, obj = nxt_conf_get_array_element(array, i); value = nxt_conf_get_object_member(obj, &host_name, NULL); - map->map[i].host = nxt_conf_get_integer(value); + map->map[i].host = nxt_conf_get_number(value); value = nxt_conf_get_object_member(obj, &cont_name, NULL); - map->map[i].container = nxt_conf_get_integer(value); + map->map[i].container = nxt_conf_get_number(value); value = nxt_conf_get_object_member(obj, &size_name, NULL); - map->map[i].size = nxt_conf_get_integer(value); + map->map[i].size = nxt_conf_get_number(value); } return NXT_OK; |