TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: What are you focused on right now?

1 点作者 gregalbritton超过 9 年前

1 comment

prahladyeri超过 9 年前
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!