summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-10 23:17:30 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-10 23:17:30 +0200
commitecdd39d3d31551af855feb1e1ad668b872fe1180 (patch)
tree2fcda741385bd9567d66441bd384de8fb0d84a4e
parent75934a6d3b28e653ab06c631c8af17c2e5765fa2 (diff)
ifpps: Remove unused 'forks' member from struct ifstat
We never use or report it anywhere, so remove it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--ifpps.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ifpps.c b/ifpps.c
index ed0634a..e5988e6 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -42,7 +42,7 @@ struct ifstat {
long long unsigned int tx_fifo, tx_colls, tx_carrier;
uint64_t mem_free, mem_total, mem_active, mem_inactive;
uint64_t swap_total, swap_free, swap_cached;
- uint32_t irq_nr, procs_total, procs_run, procs_iow, cswitch, forks;
+ uint32_t irq_nr, procs_total, procs_run, procs_iow, cswitch;
struct wifi_stat wifi;
/*
* Pointer members need to be last in order for stats_zero() to work
@@ -418,9 +418,6 @@ static int stats_proc_system(struct ifstat *stats)
} else if ((ptr = strstr(buff, "ctxt"))) {
ptr += strlen("ctxt");
stats->cswitch = strtoul(ptr, &ptr, 10);
- } else if ((ptr = strstr(buff, "processes"))) {
- ptr += strlen("processes");
- stats->forks = strtoul(ptr, &ptr, 10);
} else if ((ptr = strstr(buff, "procs_running"))) {
ptr += strlen("procs_running");
stats->procs_run = strtoul(ptr, &ptr, 10);