{"action":"created","issue":{"url":"https://api.github.com/repos/shirou/gopsutil/issues/198","repository_url":"https://api.github.com/repos/shirou/gopsutil","labels_url":"https://api.github.com/repos/shirou/gopsutil/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/shirou/gopsutil/issues/198/comments","events_url":"https://api.github.com/repos/shirou/gopsutil/issues/198/events","html_url":"https://github.com/shirou/gopsutil/issues/198","id":153580111,"number":198,"title":"Current Network utlizaiton","user":{"login":"washraf","id":4272790,"avatar_url":"https://avatars.githubusercontent.com/u/4272790?v=3","gravatar_id":"","url":"https://api.github.com/users/washraf","html_url":"https://github.com/washraf","followers_url":"https://api.github.com/users/washraf/followers","following_url":"https://api.github.com/users/washraf/following{/other_user}","gists_url":"https://api.github.com/users/washraf/gists{/gist_id}","starred_url":"https://api.github.com/users/washraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washraf/subscriptions","organizations_url":"https://api.github.com/users/washraf/orgs","repos_url":"https://api.github.com/users/washraf/repos","events_url":"https://api.github.com/users/washraf/events{/privacy}","received_events_url":"https://api.github.com/users/washraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-07T07:46:42Z","updated_at":"2016-05-08T21:52:11Z","closed_at":null,"body":"As far as I understood the type `IOCountersStat` contains information since the system start in terms of sent and received bytes and packets.\r\nI want to get some sort of network usage in a time frame just like i can do with CPU Percent function."},"comment":{"url":"https://api.github.com/repos/shirou/gopsutil/issues/comments/217748464","html_url":"https://github.com/shirou/gopsutil/issues/198#issuecomment-217748464","issue_url":"https://api.github.com/repos/shirou/gopsutil/issues/198","id":217748464,"user":{"login":"washraf","id":4272790,"avatar_url":"https://avatars.githubusercontent.com/u/4272790?v=3","gravatar_id":"","url":"https://api.github.com/users/washraf","html_url":"https://github.com/washraf","followers_url":"https://api.github.com/users/washraf/followers","following_url":"https://api.github.com/users/washraf/following{/other_user}","gists_url":"https://api.github.com/users/washraf/gists{/gist_id}","starred_url":"https://api.github.com/users/washraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washraf/subscriptions","organizations_url":"https://api.github.com/users/washraf/orgs","repos_url":"https://api.github.com/users/washraf/repos","events_url":"https://api.github.com/users/washraf/events{/privacy}","received_events_url":"https://api.github.com/users/washraf/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T21:52:11Z","updated_at":"2016-05-08T21:52:11Z","body":"I have implemented this. sorry for disturbance :+1: \r\n```\r\nfunc DirSize(path string) (int64, error) {\r\n    cmd:=exec.Command(\"du\",\"-sh\")\r\n    cmd.Dir = path\r\n    res,err:=cmd.CombinedOutput()\r\n    if (err!=nil){\r\n        return 0,err\r\n    }\r\n    sarr:=strings.Split(string(res),\"M\")\r\n    return strconv.ParseInt(sarr[0],10,64)\r\n}\r\n```"}}