mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
ProcFS: Make a new nifty /proc/net directory
And move /proc/netadapters and /proc/net_tcp there. Now they're /proc/net/adapters and /proc/net/tcp respectively, with more to come ^)
This commit is contained in:
parent
7e309e27dd
commit
84a54c7cf7
3 changed files with 29 additions and 7 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
void NetworkAdapterModel::update()
|
||||
{
|
||||
CFile file("/proc/netadapters");
|
||||
CFile file("/proc/net/adapters");
|
||||
if (!file.open(CIODevice::ReadOnly)) {
|
||||
dbg() << "Unable to open " << file.filename();
|
||||
return;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
void SocketModel::update()
|
||||
{
|
||||
CFile file("/proc/net_tcp");
|
||||
CFile file("/proc/net/tcp");
|
||||
if (!file.open(CIODevice::ReadOnly)) {
|
||||
dbg() << "Unable to open " << file.filename();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue