Home
last modified time | relevance | path

Searched refs:parse_loadavg_fixed_point (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-parse-util.c857 TEST(parse_loadavg_fixed_point) { in TEST() argument
860 assert_se(parse_loadavg_fixed_point("1.23", &fp) == 0); in TEST()
864 assert_se(parse_loadavg_fixed_point("1.80", &fp) == 0); in TEST()
868 assert_se(parse_loadavg_fixed_point("0.07", &fp) == 0); in TEST()
872 assert_se(parse_loadavg_fixed_point("0.00", &fp) == 0); in TEST()
876 assert_se(parse_loadavg_fixed_point("4096.57", &fp) == 0); in TEST()
881 assert_se(parse_loadavg_fixed_point("1.100", &fp) == -ERANGE); in TEST()
883 assert_se(parse_loadavg_fixed_point("4096.4096", &fp) == -ERANGE); in TEST()
884 assert_se(parse_loadavg_fixed_point("-4000.5", &fp) == -ERANGE); in TEST()
885 assert_se(parse_loadavg_fixed_point("18446744073709551615.5", &fp) == -ERANGE); in TEST()
[all …]
/systemd-251/src/shared/
Dpsi-util.c72 r = parse_loadavg_fixed_point(v, &rp.avg10); in read_resource_pressure()
78 r = parse_loadavg_fixed_point(v, &rp.avg60); in read_resource_pressure()
84 r = parse_loadavg_fixed_point(v, &rp.avg300); in read_resource_pressure()
/systemd-251/src/basic/
Dparse-util.h148 int parse_loadavg_fixed_point(const char *s, loadavg_t *ret);
Dparse-util.c728 int parse_loadavg_fixed_point(const char *s, loadavg_t *ret) { in parse_loadavg_fixed_point() function