mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 22:50:38 +01:00
NetIO (BSD): add txDrops detection if supported
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#include "netio.h"
|
||||
|
||||
#include "common/io/io.h"
|
||||
#include "common/netif/netif.h"
|
||||
#include "util/stringUtils.h"
|
||||
#include "util/mallocHelper.h"
|
||||
|
||||
#include <net/if.h>
|
||||
@@ -48,8 +46,8 @@ const char* ffNetIOGetIoCounters(FFlist* result, FFNetIOOptions* options)
|
||||
.rxPackets = ifm->ifm_data.ifi_ipackets,
|
||||
.txErrors = ifm->ifm_data.ifi_oerrors,
|
||||
.rxErrors = ifm->ifm_data.ifi_ierrors,
|
||||
#ifdef _IFI_OQDROPS
|
||||
.txDrops = if2m->ifm_data.ifi_oqdrops,
|
||||
#ifdef FF_HAVE_IFI_OQDROPS
|
||||
.txDrops = ifm->ifm_data.ifi_oqdrops,
|
||||
#else
|
||||
.txDrops = 0, // unsupported
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user