https://bugzilla.redhat.com/show_bug.cgi?id=1284417
Bug ID: 1284417
Summary: Python PMAPI pmSetMode does not allow None timeval
Product: Fedora
Version: 23
Component: pcp
Assignee: nathans@xxxxxxxxxx
Reporter: myllynen@xxxxxxxxxx
QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
pcp@xxxxxxxxxxx, scox@xxxxxxxxxx
Description of problem:
>From pmSetMode(1):
...
int pmSetMode(int mode, const struct timeval *when, int delta);
...
As a special case, if when is NULL then the mode and delta arguments
are used as described above, but the current time in the archive is not
altered.
...
But the Python pmSetMode does not allow this:
...
def pmSetMode(self, mode, timeVal, delta):
"""PMAPI - set interpolation mode for reading archive files
code = pmSetMode(c_api.PM_MODE_INTERP, timeval, 0)
"""
status = LIBPCP.pmUseContext(self.ctx)
if status < 0:
raise pmErr(status)
status = LIBPCP.pmSetMode(mode, pointer(timeVal), delta)
if status < 0:
raise pmErr(status)
return status
...
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=I4qo2MYbKg&a=cc_unsubscribe
|