Fix recording failure for system pollster

The parameter "cumulative" was interpreted as a list and could
not be recognized as a valid Type for SQL query hence failing
to record the data for the pollster.

The presence of ',' operator in the pollster class after the term
CUMULATIVE caused it to be treated as a list

This is corrected to interpret the field as a string which will
be successfully recorded to the meter database.

Change-Id: I10a69134a7f0c42a3e6c0d9bb7568e8d8fd2a932
Closes-Bug: 1378742
(cherry picked from commit f8f63d4b15)
This commit is contained in:
Samta 2014-10-08 16:27:12 +05:30 committed by Eoghan Glynn
parent 5b966ba778
commit 9899b6f12f
1 changed files with 2 additions and 2 deletions

View File

@ -40,11 +40,11 @@ class SystemCpuIdlePollster(_SystemBase):
class SystemIORawSentPollster(_SystemBase):
IDENTIFIER = 'system_stats.io.outgoing.blocks'
TYPE = sample.TYPE_CUMULATIVE,
TYPE = sample.TYPE_CUMULATIVE
UNIT = 'blocks'
class SystemIORawReceivedPollster(_SystemBase):
IDENTIFIER = 'system_stats.io.incoming.blocks'
TYPE = sample.TYPE_CUMULATIVE,
TYPE = sample.TYPE_CUMULATIVE
UNIT = 'blocks'