{"action":"opened","issue":{"url":"https://api.github.com/repos/collectd/collectd/issues/1305","labels_url":"https://api.github.com/repos/collectd/collectd/issues/1305/labels{/name}","comments_url":"https://api.github.com/repos/collectd/collectd/issues/1305/comments","events_url":"https://api.github.com/repos/collectd/collectd/issues/1305/events","html_url":"https://github.com/collectd/collectd/issues/1305","id":111623345,"number":1305,"title":"swap plugin reports in kB, not bytes, after update from 5.4.1 to 5.5.0","user":{"login":"giovtorres","id":4281845,"avatar_url":"https://avatars.githubusercontent.com/u/4281845?v=3","gravatar_id":"","url":"https://api.github.com/users/giovtorres","html_url":"https://github.com/giovtorres","followers_url":"https://api.github.com/users/giovtorres/followers","following_url":"https://api.github.com/users/giovtorres/following{/other_user}","gists_url":"https://api.github.com/users/giovtorres/gists{/gist_id}","starred_url":"https://api.github.com/users/giovtorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovtorres/subscriptions","organizations_url":"https://api.github.com/users/giovtorres/orgs","repos_url":"https://api.github.com/users/giovtorres/repos","events_url":"https://api.github.com/users/giovtorres/events{/privacy}","received_events_url":"https://api.github.com/users/giovtorres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T14:01:40Z","updated_at":"2015-10-15T14:01:40Z","closed_at":null,"body":"After upgrading from 5.4.1 to 5.5.0, the swap plugin now reports in kilobytes, not bytes as before.  My config just loads the swap plugin and leaves all swap plugin settings as default.\r\n\r\nHere is /proc/swaps.  Size is in kB.\r\n```console\r\n$ cat /proc/swaps \r\nFilename                  Type             Size           Used  Priority\r\n/dev/dm-0                 partition        4194300    0        -1\r\n```\r\n\r\nHere is /proc/meminfo.  Size is again in kB.\r\n```\r\n$ grep Swap /proc/meminfo \r\nSwapCached:            0 kB\r\nSwapTotal:       4194300 kB\r\nSwapFree:        4194300 kB\r\n```\r\n\r\nHere are the json datapoints of the swap-used metric before and after the upgrade from 5.4. to 5.5:\r\n\r\n```\r\n                 [4294963200.0, 1444852450],\r\n                 [4294963200.0, 1444852460],\r\n                 [4294963200.0, 1444852470],\r\n                 [4294963200.0, 1444852480],\r\n                 [4294963200.0, 1444852490],\r\n                 [4294963200.0, 1444852500],\r\n                 [4294963200.0, 1444852510],\r\n                 [4294963200.0, 1444852520],\r\n                 [4294963200.0, 1444852530],\r\n                 [4294963200.0, 1444852540],\r\n                 [4294963200.0, 1444852550],\r\n                 [4194300.0, 1444852560],\r\n                 [4194300.0, 1444852570],\r\n                 [4194300.0, 1444852580],\r\n                 [4194300.0, 1444852590],\r\n                 [4194300.0, 1444852600],\r\n                 [4194300.0, 1444852610],\r\n                 [4194300.0, 1444852620],\r\n                 [4194300.0, 1444852630],\r\n```\r\n\r\nThis is on a RHEL 6.7 x86_64 machine."}}