Bug 981146

Summary: pmchart in archive mode uses wrong (old) update interval when loading additional views
Product: [Fedora] Fedora EPEL Reporter: Mark Goodwin <mgoodwin>
Component: pcp-guiAssignee: Mark Goodwin <mgoodwin>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: mgoodwin, nathans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-04 21:43:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to add setArchiveInterval method to pmchart timecontrol and call it when a pmtime 'delta' packet is received none

Description Mark Goodwin 2013-07-04 06:34:20 UTC
Description of problem: in archive mode, pmchart "forgets" the current update interval after loading a second view - it falls back to the original default update interval from when pmchart was first started - but only for the new chart(s) - existing charts are still correct (but obviously inconsistent with the new charts because they are plotted with different update intervals!)

Version-Release number of selected component (if applicable):
pcp-gui-1.5.9-1.x86_64

How reproducible: always

Steps to Reproduce:
1. run pmchart -a somearchive -c CPU
2. expose the time controls and change the update interval
3. load some another view, say Loadavg

Actual results:
pmchart creates the second view, but with the original update interval that pmchart was first started with

Expected results:
pmchart should create the second view using the current update interval

Additional info:
fix available - I'll post it. This is similar to an earlier bug (now fixed) where pmchart forgets the archive position when loading a new view - the update interval is affected too,

Comment 1 Mark Goodwin 2013-07-04 06:39:39 UTC
Created attachment 768607 [details]
patch to add setArchiveInterval method to pmchart timecontrol and call it when a pmtime 'delta' packet is received

patch to save the new update interval when a pmtime 'delta' packet is received

Comment 2 Nathan Scott 2014-02-04 21:43:12 UTC
Closing out manually - issue has been long since fixed.