tmf: Don't return -1 for interval end times in the TransientState
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 21 Jan 2014 21:09:36 +0000 (16:09 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 21 Jan 2014 21:50:42 +0000 (16:50 -0500)
commitc3c783f6fa4854f21df26425ded7b1bf15882d43
tree9017993f0642ecac95d0ddd01a2dc9a45583a4f9
parent851d356b44abd0bf7316e1a16d47726b6484624d
tmf: Don't return -1 for interval end times in the TransientState

This might make sense locally to this class, but no other component
anywhere uses -1 for an end time value. Plus it breaks the contract
checked at construction that the end time should always be > the start
time.

Instead of returning a dummy -1, return the latest known end time. This
is just as "wrong", but eventually we could augment to API to indicate
if it read a real interval or a current state.

Change-Id: Ia9a23f990dce3301c721996e75219bc34ed1164f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/20903
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java
This page took 0.025702 seconds and 5 git commands to generate.