O
O
olekill2017-04-07 09:51:21
Python
olekill, 2017-04-07 09:51:21

How can I find out the current network load (Mac OS)?

Please help me come up with an algorithm / maybe there is some ready-made command in order to find out the current network load on Mac OS, then you need to work with this variable programmatically (Python, PHP, Shell, something else). For example - a torrent client is currently downloading 200-300 kb / s, a YouTube video is being loaded in Chrome and consuming another 300 kb / s. How to collect all this in total in one variable (500-600 kb / s)?
What you need: Yota (a mobile operator from Russia) has a function in its personal account to dynamically change the tariff and cost parameters, I would like to write a demon that would monitor my current "high-speed needs" and, depending on this, turn on the desired tariff, maximum savings. I found a Python script on GitHub in which you can dynamically change the speed through the console, passing the necessary one as a parameter, I would like to automate.
52cf0e68dd8f4f64928629f5f9b9a987.pnga00de9abbfb841a5a5fcbc92402e8641.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gill-sama, 2017-04-07
@olekill

for python you should consider psutil
and an example usage
stackoverflow.com/questions/21866951/get-upload-do...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question