Admin Stats: change device usage to use /proc/net/dev

Version 1.59.2


Previously, the Admin Stats page used "/sbin/ifconfig eth0" to hunt down the RX:TX values for that device. New method changes it to use: /proc/net/dev Only noticeable difference will be the units will be shown in "MB/GB" instead of "MiB/GiB", for example. Change does not affect FreeBSD, which still uses the call to /usr/bin/netstat.

Interested to try DirectAdmin? Get a 30-day Free Trial!