Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[python-pcp] Fix a bug in pmsubsys which causes timestamp to reset. #31

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -173,7 +173,7 @@ def get_stats(self, pcp):
try:
metric_result = pcp.pmFetch(self.metric_pmids)
- self._timestamp = metric_result.contents.timestamp
+ self._timestamp = copy.deepcopy(metric_result.contents.timestamp)
except pmErr as e:
self._timestamp = timeval(0, 0)
raise e