{"action":"opened","issue":{"url":"https://api.github.com/repos/chef/ohai/issues/575","labels_url":"https://api.github.com/repos/chef/ohai/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/chef/ohai/issues/575/comments","events_url":"https://api.github.com/repos/chef/ohai/issues/575/events","html_url":"https://github.com/chef/ohai/issues/575","id":94651176,"number":575,"title":"Returning twice the amount of Memory [Size|Used|Available] in the File System ","user":{"login":"ganeshnalawade","id":5292461,"avatar_url":"https://avatars.githubusercontent.com/u/5292461?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshnalawade","html_url":"https://github.com/ganeshnalawade","followers_url":"https://api.github.com/users/ganeshnalawade/followers","following_url":"https://api.github.com/users/ganeshnalawade/following{/other_user}","gists_url":"https://api.github.com/users/ganeshnalawade/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshnalawade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshnalawade/subscriptions","organizations_url":"https://api.github.com/users/ganeshnalawade/orgs","repos_url":"https://api.github.com/users/ganeshnalawade/repos","events_url":"https://api.github.com/users/ganeshnalawade/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshnalawade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T06:39:33Z","updated_at":"2015-07-13T06:39:33Z","closed_at":null,"body":"On JUNOS shell \"df\" command outputs memory as blocks of 512 by default.\r\nOhai  displays twice the memory as it assumes memory output in 1K blocks.\r\nRelevant output of ohai client on JUNOS\r\n```\r\n \"filesystem\": {\r\n    \"/dev/da0s1a\": {\r\n      \"kb_size\": \"1850456\", >>>>>>>It is showing twice the value of actual one\r\n      \"kb_used\": \"525808\", >>>>>>>It is showing twice the value of actual one\r\n      \"kb_available\": \"1176612\",>>>>>>>It is showing twice the value of actual one\r\n      \"percent_used\": \"31%\",\r\n      \"mount\": \"/\",\r\n      \"fs_type\": \"ufs\",\r\n      \"mount_options\": [\r\n        \"local\",\r\n        \"noatime\"\r\n      ]\r\n    },\r\n```\r\nJUNOS Output:\r\n```\r\n% df\r\nFilesystem          512-blocks   Used    Avail Capacity  Mounted on\r\n/dev/da0s1a            1850456 513800  1188620    30%    /\r\ndevfs                        2      2        0   100%    /dev\r\n/dev/md0                130656 130656        0   100%    /packages/mnt/jbase\r\n```\r\n```\r\n% df -k\r\nFilesystem          1K-blocks   Used   Avail Capacity  Mounted on\r\n/dev/da0s1a            925228 256900  594310    30%    /\r\ndevfs                       1      1       0   100%    /dev\r\n/dev/md0                65328  65328       0   100%    /packages/mnt/jbase\r\n\r\n```"}}