{"action":"created","issue":{"url":"https://api.github.com/repos/biji/simplenetspeed/issues/3","repository_url":"https://api.github.com/repos/biji/simplenetspeed","labels_url":"https://api.github.com/repos/biji/simplenetspeed/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/biji/simplenetspeed/issues/3/comments","events_url":"https://api.github.com/repos/biji/simplenetspeed/issues/3/events","html_url":"https://github.com/biji/simplenetspeed/issues/3","id":168076092,"number":3,"title":"No data shown","user":{"login":"jrie","id":5701785,"avatar_url":"https://avatars.githubusercontent.com/u/5701785?v=3","gravatar_id":"","url":"https://api.github.com/users/jrie","html_url":"https://github.com/jrie","followers_url":"https://api.github.com/users/jrie/followers","following_url":"https://api.github.com/users/jrie/following{/other_user}","gists_url":"https://api.github.com/users/jrie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrie/subscriptions","organizations_url":"https://api.github.com/users/jrie/orgs","repos_url":"https://api.github.com/users/jrie/repos","events_url":"https://api.github.com/users/jrie/events{/privacy}","received_events_url":"https://api.github.com/users/jrie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T11:43:41Z","updated_at":"2016-07-28T15:18:26Z","closed_at":null,"body":"On my system Debian Stretch there is no data shown by default.\r\n\r\nIt seems the regular expression to read out the data from \"line\" (proc/net/dev) is, in reason of previous spaces before the device name, off by one.\r\n\r\nBut with this change, it does work fields[1] instead of fields[0] and so forth:\r\n```\r\n            line = String(line);\r\n            let fields = line.split(/\\W+/);\r\n    \r\n            if (fields.length<=2) break;\r\n            \r\n            if (fields[1] != \"lo\" && !isNaN(parseInt(fields[2]))) {\r\n                count = count + parseInt(fields[2]) + parseInt(fields[10]);\r\n                countUp = countUp + parseInt(fields[10]);\r\n            }\r\n```\r\n\r\nPerhaps the split regular expression should ignore previous whitespace?"},"comment":{"url":"https://api.github.com/repos/biji/simplenetspeed/issues/comments/235927387","html_url":"https://github.com/biji/simplenetspeed/issues/3#issuecomment-235927387","issue_url":"https://api.github.com/repos/biji/simplenetspeed/issues/3","id":235927387,"user":{"login":"biji","id":665559,"avatar_url":"https://avatars.githubusercontent.com/u/665559?v=3","gravatar_id":"","url":"https://api.github.com/users/biji","html_url":"https://github.com/biji","followers_url":"https://api.github.com/users/biji/followers","following_url":"https://api.github.com/users/biji/following{/other_user}","gists_url":"https://api.github.com/users/biji/gists{/gist_id}","starred_url":"https://api.github.com/users/biji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biji/subscriptions","organizations_url":"https://api.github.com/users/biji/orgs","repos_url":"https://api.github.com/users/biji/repos","events_url":"https://api.github.com/users/biji/events{/privacy}","received_events_url":"https://api.github.com/users/biji/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T15:18:26Z","updated_at":"2016-07-28T15:18:26Z","body":"can you post raw output of /proc/net/dev"}}
{"actor":{"display_login":"biji"}}