memory plugin: Move calculation of the percentage to memory_submit().
authorFlorian Forster <octo@collectd.org>
Sun, 12 Jan 2014 11:12:26 +0000 (12:12 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 12 Jan 2014 11:12:26 +0000 (12:12 +0100)
commitc791ba092d082a05d26dff3bbf666531f11c2b65
treecfb65f511be794c03684c85dafdcf9bcab9e8a78
parent8c16f03d9f6c5481e577110ef28b5239ff31bd50
memory plugin: Move calculation of the percentage to memory_submit().

This removed the need for a lot of duplicate calls. It also changes the
naming schema to use the "percent" type rather than the "memory" type,
putting the information that these are percentages into the type
instance field.
src/memory.c