Skip to content

Read then parse /proc/net/dev in Java

Notifications You must be signed in to change notification settings

NasdaqGodzilla/ProcNetDev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ProcNetDev

Read then parse /proc/net/dev in Java

使用Java解析/proc/net/dev

Usage

ProcNetDev d = new ProcNetDev();
d.read("wlan0", "lo"); // Read interface wlan0, lo
String tx = d.get("wlan0").get("Receive_bytes"); // Get Receive bytes on interface wlan0

ProcNetDev_example

About

Read then parse /proc/net/dev in Java

Topics

Resources

Stars

Watchers

Forks

Languages