{"action":"created","comment":{"url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/comments/69218568","id":69218568,"diff_hunk":"@@ -2,12 +2,61 @@ package sqrl\n \n import (\n \t\"fmt\"\n+\t\"math/big\"\n \n-\t\"github.com/shirou/gopsutil/mem\"\n+\t\"github.com/dmmcquay/likexian/host-stat-go\"\n+\t\"github.com/dmmcquay/sqrl/dustin/go-humanize\"\n )\n \n-func MemInfo() {\n+func meminfo() (uint64, uint64) {\n \tv, _ := mem.VirtualMemory()\n+\tvar total uint64\n+\ttotal = v.Total\n+\tfree := v.Free\n+\treturn total, free\n+}\n+\n+func swapinfo() (uint64, uint64) {\n+\ts, _ := mem.SwapMemory()\n+\ttotal := s.Total\n+\tfree := s.Free\n+\treturn total, free\n+}\n \n-\tfmt.Println(v)\n+func versioninfo() (string, string, string) {\n+\ti, _ := host_stat.GetHostInfo()","path":"mem.go","position":29,"original_position":29,"commit_id":"87f4d16b6759e40e2d0b2d5a4249d51d21f73559","original_commit_id":"50acbf413a192a6f8597e1d3dad8a25faddd3499","user":{"login":"dmmcquay","id":1700422,"avatar_url":"https://avatars.githubusercontent.com/u/1700422?v=3","gravatar_id":"","url":"https://api.github.com/users/dmmcquay","html_url":"https://github.com/dmmcquay","followers_url":"https://api.github.com/users/dmmcquay/followers","following_url":"https://api.github.com/users/dmmcquay/following{/other_user}","gists_url":"https://api.github.com/users/dmmcquay/gists{/gist_id}","starred_url":"https://api.github.com/users/dmmcquay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmmcquay/subscriptions","organizations_url":"https://api.github.com/users/dmmcquay/orgs","repos_url":"https://api.github.com/users/dmmcquay/repos","events_url":"https://api.github.com/users/dmmcquay/events{/privacy}","received_events_url":"https://api.github.com/users/dmmcquay/received_events","type":"User","site_admin":false},"body":"Same thing here.  Don't ignore errors! They can come back to haunt us....","created_at":"2016-06-30T22:03:27Z","updated_at":"2016-06-30T22:03:27Z","html_url":"https://github.com/dmmcquay/sqrl/pull/5#discussion_r69218568","pull_request_url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/comments/69218568"},"html":{"href":"https://github.com/dmmcquay/sqrl/pull/5#discussion_r69218568"},"pull_request":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5","id":75890432,"html_url":"https://github.com/dmmcquay/sqrl/pull/5","diff_url":"https://github.com/dmmcquay/sqrl/pull/5.diff","patch_url":"https://github.com/dmmcquay/sqrl/pull/5.patch","issue_url":"https://api.github.com/repos/dmmcquay/sqrl/issues/5","number":5,"state":"open","locked":false,"title":"Pr/4","user":{"login":"dgillsom","id":9340501,"avatar_url":"https://avatars.githubusercontent.com/u/9340501?v=3","gravatar_id":"","url":"https://api.github.com/users/dgillsom","html_url":"https://github.com/dgillsom","followers_url":"https://api.github.com/users/dgillsom/followers","following_url":"https://api.github.com/users/dgillsom/following{/other_user}","gists_url":"https://api.github.com/users/dgillsom/gists{/gist_id}","starred_url":"https://api.github.com/users/dgillsom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgillsom/subscriptions","organizations_url":"https://api.github.com/users/dgillsom/orgs","repos_url":"https://api.github.com/users/dgillsom/repos","events_url":"https://api.github.com/users/dgillsom/events{/privacy}","received_events_url":"https://api.github.com/users/dgillsom/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-30T21:03:42Z","updated_at":"2016-06-30T22:03:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"333f5a09011f72ffa69d6daa6b7f8b38e2bf3d56","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5/commits","review_comments_url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5/comments","review_comment_url":"https://api.github.com/repos/dmmcquay/sqrl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmmcquay/sqrl/issues/5/comments","statuses_url":"https://api.github.com/repos/dmmcquay/sqrl/statuses/87f4d16b6759e40e2d0b2d5a4249d51d21f73559","head":{"label":"dgillsom:pr/4","ref":"pr/4","sha":"87f4d16b6759e40e2d0b2d5a4249d51d21f73559","user":{"login":"dgillsom","id":9340501,"avatar_url":"https://avatars.githubusercontent.com/u/9340501?v=3","gravatar_id":"","url":"https://api.github.com/users/dgillsom","html_url":"https://github.com/dgillsom","followers_url":"https://api.github.com/users/dgillsom/followers","following_url":"https://api.github.com/users/dgillsom/following{/other_user}","gists_url":"https://api.github.com/users/dgillsom/gists{/gist_id}","starred_url":"https://api.github.com/users/dgillsom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgillsom/subscriptions","organizations_url":"https://api.github.com/users/dgillsom/orgs","repos_url":"https://api.github.com/users/dgillsom/repos","events_url":"https://api.github.com/users/dgillsom/events{/privacy}","received_events_url":"https://api.github.com/users/dgillsom/received_events","type":"User","site_admin":false},"repo":{"id":62253890,"name":"sqrl","full_name":"dgillsom/sqrl","owner":{"login":"dgillsom","id":9340501,"avatar_url":"https://avatars.githubusercontent.com/u/9340501?v=3","gravatar_id":"","url":"https://api.github.com/users/dgillsom","html_url":"https://github.com/dgillsom","followers_url":"https://api.github.com/users/dgillsom/followers","following_url":"https://api.github.com/users/dgillsom/following{/other_user}","gists_url":"https://api.github.com/users/dgillsom/gists{/gist_id}","starred_url":"https://api.github.com/users/dgillsom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgillsom/subscriptions","organizations_url":"https://api.github.com/users/dgillsom/orgs","repos_url":"https://api.github.com/users/dgillsom/repos","events_url":"https://api.github.com/users/dgillsom/events{/privacy}","received_events_url":"https://api.github.com/users/dgillsom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgillsom/sqrl","description":"system inventory program for HPC academy students","fork":true,"url":"https://api.github.com/repos/dgillsom/sqrl","forks_url":"https://api.github.com/repos/dgillsom/sqrl/forks","keys_url":"https://api.github.com/repos/dgillsom/sqrl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgillsom/sqrl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgillsom/sqrl/teams","hooks_url":"https://api.github.com/repos/dgillsom/sqrl/hooks","issue_events_url":"https://api.github.com/repos/dgillsom/sqrl/issues/events{/number}","events_url":"https://api.github.com/repos/dgillsom/sqrl/events","assignees_url":"https://api.github.com/repos/dgillsom/sqrl/assignees{/user}","branches_url":"https://api.github.com/repos/dgillsom/sqrl/branches{/branch}","tags_url":"https://api.github.com/repos/dgillsom/sqrl/tags","blobs_url":"https://api.github.com/repos/dgillsom/sqrl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgillsom/sqrl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgillsom/sqrl/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgillsom/sqrl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgillsom/sqrl/statuses/{sha}","languages_url":"https://api.github.com/repos/dgillsom/sqrl/languages","stargazers_url":"https://api.github.com/repos/dgillsom/sqrl/stargazers","contributors_url":"https://api.github.com/repos/dgillsom/sqrl/contributors","subscribers_url":"https://api.github.com/repos/dgillsom/sqrl/subscribers","subscription_url":"https://api.github.com/repos/dgillsom/sqrl/subscription","commits_url":"https://api.github.com/repos/dgillsom/sqrl/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgillsom/sqrl/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgillsom/sqrl/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgillsom/sqrl/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgillsom/sqrl/contents/{+path}","compare_url":"https://api.github.com/repos/dgillsom/sqrl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgillsom/sqrl/merges","archive_url":"https://api.github.com/repos/dgillsom/sqrl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgillsom/sqrl/downloads","issues_url":"https://api.github.com/repos/dgillsom/sqrl/issues{/number}","pulls_url":"https://api.github.com/repos/dgillsom/sqrl/pulls{/number}","milestones_url":"https://api.github.com/repos/dgillsom/sqrl/milestones{/number}","notifications_url":"https://api.github.com/repos/dgillsom/sqrl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgillsom/sqrl/labels{/name}","releases_url":"https://api.github.com/repos/dgillsom/sqrl/releases{/id}","deployments_url":"https://api.github.com/repos/dgillsom/sqrl/deployments","created_at":"2016-06-29T19:57:08Z","updated_at":"2016-06-29T19:57:09Z","pushed_at":"2016-06-30T21:03:00Z","git_url":"git://github.com/dgillsom/sqrl.git","ssh_url":"git@github.com:dgillsom/sqrl.git","clone_url":"https://github.com/dgillsom/sqrl.git","svn_url":"https://github.com/dgillsom/sqrl","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmmcquay:master","ref":"master","sha":"54c4d0ddb8638cec4eef300bacbfef09a6f0e537","user":{"login":"dmmcquay","id":1700422,"avatar_url":"https://avatars.githubusercontent.com/u/1700422?v=3","gravatar_id":"","url":"https://api.github.com/users/dmmcquay","html_url":"https://github.com/dmmcquay","followers_url":"https://api.github.com/users/dmmcquay/followers","following_url":"https://api.github.com/users/dmmcquay/following{/other_user}","gists_url":"https://api.github.com/users/dmmcquay/gists{/gist_id}","starred_url":"https://api.github.com/users/dmmcquay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmmcquay/subscriptions","organizations_url":"https://api.github.com/users/dmmcquay/orgs","repos_url":"https://api.github.com/users/dmmcquay/repos","events_url":"https://api.github.com/users/dmmcquay/events{/privacy}","received_events_url":"https://api.github.com/users/dmmcquay/received_events","type":"User","site_admin":false},"repo":{"id":62242810,"name":"sqrl","full_name":"dmmcquay/sqrl","owner":{"login":"dmmcquay","id":1700422,"avatar_url":"https://avatars.githubusercontent.com/u/1700422?v=3","gravatar_id":"","url":"https://api.github.com/users/dmmcquay","html_url":"https://github.com/dmmcquay","followers_url":"https://api.github.com/users/dmmcquay/followers","following_url":"https://api.github.com/users/dmmcquay/following{/other_user}","gists_url":"https://api.github.com/users/dmmcquay/gists{/gist_id}","starred_url":"https://api.github.com/users/dmmcquay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmmcquay/subscriptions","organizations_url":"https://api.github.com/users/dmmcquay/orgs","repos_url":"https://api.github.com/users/dmmcquay/repos","events_url":"https://api.github.com/users/dmmcquay/events{/privacy}","received_events_url":"https://api.github.com/users/dmmcquay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmmcquay/sqrl","description":"system inventory program for HPC academy students","fork":false,"url":"https://api.github.com/repos/dmmcquay/sqrl","forks_url":"https://api.github.com/repos/dmmcquay/sqrl/forks","keys_url":"https://api.github.com/repos/dmmcquay/sqrl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmmcquay/sqrl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmmcquay/sqrl/teams","hooks_url":"https://api.github.com/repos/dmmcquay/sqrl/hooks","issue_events_url":"https://api.github.com/repos/dmmcquay/sqrl/issues/events{/number}","events_url":"https://api.github.com/repos/dmmcquay/sqrl/events","assignees_url":"https://api.github.com/repos/dmmcquay/sqrl/assignees{/user}","branches_url":"https://api.github.com/repos/dmmcquay/sqrl/branches{/branch}","tags_url":"https://api.github.com/repos/dmmcquay/sqrl/tags","blobs_url":"https://api.github.com/repos/dmmcquay/sqrl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmmcquay/sqrl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmmcquay/sqrl/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmmcquay/sqrl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmmcquay/sqrl/statuses/{sha}","languages_url":"https://api.github.com/repos/dmmcquay/sqrl/languages","stargazers_url":"https://api.github.com/repos/dmmcquay/sqrl/stargazers","contributors_url":"https://api.github.com/repos/dmmcquay/sqrl/contributors","subscribers_url":"https://api.github.com/repos/dmmcquay/sqrl/subscribers","subscription_url":"https://api.github.com/repos/dmmcquay/sqrl/subscription","commits_url":"https://api.github.com/repos/dmmcquay/sqrl/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmmcquay/sqrl/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmmcquay/sqrl/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmmcquay/sqrl/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmmcquay/sqrl/contents/{+path}","compare_url":"https://api.github.com/repos/dmmcquay/sqrl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmmcquay/sqrl/merges","archive_url":"https://api.github.com/repos/dmmcquay/sqrl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmmcquay/sqrl/downloads","issues_url":"https://api.github.com/repos/dmmcquay/sqrl/issues{/number}","pulls_url":"https://api.github.com/repos/dmmcquay/sqrl/pulls{/number}","milestones_url":"https://api.github.com/repos/dmmcquay/sqrl/milestones{/number}","notifications_url":"https://api.github.com/repos/dmmcquay/sqrl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmmcquay/sqrl/labels{/name}","releases_url":"https://api.github.com/repos/dmmcquay/sqrl/releases{/id}","deployments_url":"https://api.github.com/repos/dmmcquay/sqrl/deployments","created_at":"2016-06-29T16:56:17Z","updated_at":"2016-06-29T17:34:18Z","pushed_at":"2016-06-30T21:17:36Z","git_url":"git://github.com/dmmcquay/sqrl.git","ssh_url":"git@github.com:dmmcquay/sqrl.git","clone_url":"https://github.com/dmmcquay/sqrl.git","svn_url":"https://github.com/dmmcquay/sqrl","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5"},"html":{"href":"https://github.com/dmmcquay/sqrl/pull/5"},"issue":{"href":"https://api.github.com/repos/dmmcquay/sqrl/issues/5"},"comments":{"href":"https://api.github.com/repos/dmmcquay/sqrl/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmmcquay/sqrl/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/dmmcquay/sqrl/statuses/87f4d16b6759e40e2d0b2d5a4249d51d21f73559"}}}}
{"actor":{"display_login":"dmmcquay"}}