summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d3bb71e)
raw | patch | inline | side by side (parent: d3bb71e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 11:21:45 +0000 (13:21 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 11:23:10 +0000 (13:23 +0200) |
src/interface.c | patch | blob | history |
diff --git a/src/interface.c b/src/interface.c
index d05dd72309f80ffd79c6e94fbe2c9509d962afce..bc2121bd48cccc401118c5789bd918a4ba038437 100644 (file)
--- a/src/interface.c
+++ b/src/interface.c
static int interface_init (void)
{
kstat_t *ksp_chain;
- derive_t val;
numif = 0;
continue;
if (kstat_read (kc, ksp_chain, NULL) == -1)
continue;
- if ((val = get_kstat_value (ksp_chain, "obytes")) == -1LL)
+ if (get_kstat_value (ksp_chain, "obytes") == -1LL)
continue;
ksp[numif++] = ksp_chain;
}