diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-08 16:34:54 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-16 20:00:14 +0200 |
commit | 7cd093ce95c1f59cfc1ee2786578457ea6fa1559 (patch) | |
tree | 6f86c845bed7b5ce58e222e8000e53d80756578c /dragonflybsd | |
parent | a8029612862e6ef6ab55b2f7adc2c8b4ac554cee (diff) |
Add NetworkIOMeter
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/Platform.c | 11 | ||||
-rw-r--r-- | dragonflybsd/Platform.h | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 6eb1e99c..eb172513 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -215,3 +215,14 @@ void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWr // TODO *bytesRead = *bytesWrite = *msTimeSpend = 0; } + +void Platform_getNetworkIO(unsigned long int *bytesReceived, + unsigned long int *packetsReceived, + unsigned long int *bytesTransmitted, + unsigned long int *packetsTransmitted) { + // TODO + *bytesReceived = 0; + *packetsReceived = 0; + *bytesTransmitted = 0; + *packetsTransmitted = 0; +} diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 3dc1eb1e..50187aa4 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -44,4 +44,9 @@ char* Platform_getProcessEnv(pid_t pid); void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend); +void Platform_getNetworkIO(unsigned long int *bytesReceived, + unsigned long int *packetsReceived, + unsigned long int *bytesTransmitted, + unsigned long int *packetsTransmitted); + #endif |