report-database-stats.py gives bogus cpu utilization

Bug #590684 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Stuart Bishop

Bug Description

The database stats report just does a simple average over the data to calculate cpu utilization per user. Unfortunately, when a script is not running at all no data is stored for that user so the times when a script was not running at all are not counted.

The report needs to calculate the average using the number of samples taken in the time frame, not the number of rows of data for the given user.

Related branches

Stuart Bishop (stub)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
milestone: none → 10.06
status: Triaged → Fix Committed
tags: added: qa-needstesting
Revision history for this message
Ursula Junque (ursinha) wrote :
Stuart Bishop (stub)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad-foundations:
milestone: 10.07 → 10.08
tags: added: qa-needstesting
removed: qa-ok
Stuart Bishop (stub)
tags: added: qa-ok
removed: qa-needstesting
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.