mirror of
https://github.com/bjango/istatserverlinux.git
synced 2025-10-23 07:58:05 +00:00
fixed an issue with network interfaces with long bsd names
This commit is contained in:
@@ -142,7 +142,7 @@ void StatsNetwork::update(long long sampleID)
|
|||||||
unsigned long long upload;
|
unsigned long long upload;
|
||||||
unsigned long long download;
|
unsigned long long download;
|
||||||
|
|
||||||
if(fscanf(fp, "%7[^:]:%llu %*u %*u %*u %*u %*u %*u %*u %llu %*[^\n] ", dev, &download, &upload) > 0)
|
if(fscanf(fp, "%16[^:]:%llu %*u %*u %*u %*u %*u %*u %*u %llu %*[^\n] ", dev, &download, &upload) > 0)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GETIFADDRS
|
#ifdef HAVE_GETIFADDRS
|
||||||
if(active_infs.size() > 0)
|
if(active_infs.size() > 0)
|
||||||
|
Reference in New Issue
Block a user