TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: What are you focused on right now?

1 pointsby gregalbrittonover 9 years ago

1 comment

prahladyeriover 9 years ago
For anyone who is interested in Linux development, I decided to build this GUI app with `Python gobject` that fetches process-wise bandwidth consumed for each period (such as firefox 10GB, ssh 1GB, etc.) as they show in android. I know nethogs exists for this, but it doesn&#x27;t save historical data, nor does it have a GUI.<p>So, I went about building this app with the standard way: of reading into `&#x2F;proc&#x2F;net&#x2F;dev` for overall bandwidth and `&#x2F;proc&#x2F;&lt;pid&gt;&#x2F;net&#x2F;dev` for process-wise bandwidth.<p>It was a nasty little surprise for me when I came to know that `&#x2F;proc&#x2F;&lt;pid&gt;&#x2F;net&#x2F;dev` actually doesn&#x27;t give me process wise bandwidth, it does the same as the overall `&#x2F;proc&#x2F;net&#x2F;dev` :-(.<p>As a result, my [project](<a href="https:&#x2F;&#x2F;github.com&#x2F;prahladyeri&#x2F;netpatrol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prahladyeri&#x2F;netpatrol</a>) is stuck in limbo until I figure out how `nethogs` gets the process-wise bandwidth by going through its overwhelming source-code. I presently don&#x27;t have the time to do that, but one day, I&#x27;ll get it!! If anyone can help me with this, they are most welcome!