mirror of
https://github.com/bjango/istatserverlinux.git
synced 2025-10-24 16:30:48 +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 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
|
||||
if(active_infs.size() > 0)
|
||||
|
||||
Reference in New Issue
Block a user