{"action":"closed","issue":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/74","labels_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/74/comments","events_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/74/events","html_url":"https://github.com/RuntimeTools/appmetrics/issues/74","id":119088238,"number":74,"title":"Bad physical_used value from memory event on Mac OSX 32-bit","user":{"login":"tunniclm","id":5011883,"avatar_url":"https://avatars.githubusercontent.com/u/5011883?v=3","gravatar_id":"","url":"https://api.github.com/users/tunniclm","html_url":"https://github.com/tunniclm","followers_url":"https://api.github.com/users/tunniclm/followers","following_url":"https://api.github.com/users/tunniclm/following{/other_user}","gists_url":"https://api.github.com/users/tunniclm/gists{/gist_id}","starred_url":"https://api.github.com/users/tunniclm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunniclm/subscriptions","organizations_url":"https://api.github.com/users/tunniclm/orgs","repos_url":"https://api.github.com/users/tunniclm/repos","events_url":"https://api.github.com/users/tunniclm/events{/privacy}","received_events_url":"https://api.github.com/users/tunniclm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T18:09:53Z","updated_at":"2015-12-02T16:08:39Z","closed_at":"2015-12-02T16:08:39Z","body":"Testcase:\r\n\r\n```js\r\nvar assert = require('assert');\r\nrequire('appmetrics').monitor().on('memory', function(data) {\r\n  assert(data.physical_used === -1 || data.physical_used >= 0,\r\n           'Memory data message does not contain a valid used physical memory ('\r\n            + data.physical_used + ')');\r\n});\r\nsetTimeout(function() {}, 3000);\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nassert.js:89\r\n  throw new assert.AssertionError({\r\n  ^\r\nAssertionError: Memory data message does not contain a valid used physical memory (-4115607553)\r\n    at API.<anonymous> ([eval]:1:80)\r\n    at emitOne (events.js:77:13)\r\n    at API.emit (events.js:169:7)\r\n    at API.formatMemory (.../test/node_modules/appmetrics/appmetrics-api.js:125:14)\r\n    at API.raiseEvent (.../test/node_modules/appmetrics/appmetrics-api.js:40:17)\r\n    at events (.../test/node_modules/appmetrics/appmetrics-api.js:178:9)\r\n```"}}