Skip to content

Commit

Permalink
qa: correctly set fractional component of sub-second time
Browse files Browse the repository at this point in the history
Resolves the failure in qa/737 currently.
  • Loading branch information
natoscott committed Oct 18, 2024
1 parent 464f13b commit a754b19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qa/src/test_pcp_time.python
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ print("pmWhichZone: %s" % str(context.pmWhichZone()))
# https://bugzilla.redhat.com/show_bug.cgi?id=1352465
print("pmWhichZone: %s" % str(context.pmWhichZone()))

sample_time_f += 0.5 # sub-second component

timevali = pmapi.timeval(sample_time_i)
timevalf = pmapi.timeval(sample_time_f)
print("timeval from int: %s" % timevali)
print("timeval from float: %s" % timevalf)

sample_time_f += 0.5 # sub-second component
timespeci = pmapi.timespec(sample_time_i)
timespecf = pmapi.timespec(sample_time_f)
print("timespec from int: %s" % timespeci)
Expand Down

0 comments on commit a754b19

Please sign in to comment.