I think you are right. At least they should document that it only works if you have netstat installed and using it on a device called "en0"
I think you are right. At least they should document that it only works if you have netstat installed and using it on a device called "en0"
They do that implicitly in the comment above the function:
> // Function to monitor network activity (macOS specific)
I'm guessing all macOS computers use exactly the same NIC name, and come with netstat preinstalled?