diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-14 21:58:02 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-14 21:58:02 -0700 |
| commit | b47a223bfb2c7114154504ec8d6cdac5abd0b884 (patch) | |
| tree | a9f70f7e3ca9d00a77fb2026daf5f1c3ba0cf013 /src/protocol/survey | |
| parent | 6655557fca28408e0eeac3ba80b9e2bbdeada389 (diff) | |
| download | nng-b47a223bfb2c7114154504ec8d6cdac5abd0b884.tar.gz nng-b47a223bfb2c7114154504ec8d6cdac5abd0b884.tar.bz2 nng-b47a223bfb2c7114154504ec8d6cdac5abd0b884.zip | |
Convert duration to usec.
Diffstat (limited to 'src/protocol/survey')
| -rw-r--r-- | src/protocol/survey/survey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/survey/survey.c b/src/protocol/survey/survey.c index 45b06d67..cb90c13f 100644 --- a/src/protocol/survey/survey.c +++ b/src/protocol/survey/survey.c @@ -295,7 +295,7 @@ nni_surv_sock_setopt(void *arg, int opt, const void *buf, size_t sz) switch (opt) { case NNG_OPT_SURVEYTIME: - rv = nni_setopt_duration(&psock->survtime, buf, sz); + rv = nni_setopt_usec(&psock->survtime, buf, sz); break; case NNG_OPT_RAW: oldraw = psock->raw; @@ -324,7 +324,7 @@ nni_surv_sock_getopt(void *arg, int opt, void *buf, size_t *szp) switch (opt) { case NNG_OPT_SURVEYTIME: - rv = nni_getopt_duration(&psock->survtime, buf, szp); + rv = nni_getopt_usec(&psock->survtime, buf, szp); break; case NNG_OPT_RAW: rv = nni_getopt_int(&psock->raw, buf, szp); |
