diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-11-21 22:11:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-11-23 22:20:12 -0800 |
| commit | d1218d7309475193b53911667911c4f59a1a7752 (patch) | |
| tree | 6ea796998fb60d2cb8afa704faa77fe7fddd644c /src/core/stats.h | |
| parent | b826bfc171d90f8bde7bd672c0ac14201b8b2742 (diff) | |
| download | nng-d1218d7309475193b53911667911c4f59a1a7752.tar.gz nng-d1218d7309475193b53911667911c4f59a1a7752.tar.bz2 nng-d1218d7309475193b53911667911c4f59a1a7752.zip | |
New NUTS test framework (NNG Unit Test Support).
This is based on testutil/acutest, but is cleaner and fixes some
short-comings. We will be adding more support for additional
common paradigms to better facilitate transport tests.
While here we added some more test cases, and fixed a possible
symbol collision in the the stats framework (due to Linux use
of a macro definition of "si_value" in a standard OS header).
Test coverage may regress slightly as we are no longer using
some of the legacy APIs.
Diffstat (limited to 'src/core/stats.h')
| -rw-r--r-- | src/core/stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stats.h b/src/core/stats.h index 950df78f..de1879ca 100644 --- a/src/core/stats.h +++ b/src/core/stats.h @@ -14,7 +14,7 @@ #include "core/defs.h" // Statistics support. This is inspired in part by the Solaris -// kstats framework, but we've simplified and tuned it for our use. +// kernel stats framework, but we've simplified and tuned it for our use. // // Collection of the stats will be done in two steps. First we // will walk the list of stats, with the chain held, allocating @@ -45,7 +45,7 @@ struct nni_stat_item { char * sv_string; bool sv_bool; int sv_id; - } si_value; + } si_u; }; struct nni_stat_info { |
