diff options
author | Matthew Khouzam | 2014-12-15 11:25:52 +0000 |
---|---|---|
committer | Marc-Andre Laperle | 2014-12-16 16:20:33 +0000 |
commit | 8634587a1e5d363d9cd748524c6dbde4963bc536 (patch) | |
tree | 156205b6a35d9acdbbac2028d5993b090c8a068a /org.eclipse.tracecompass.lttng2.control.ui | |
parent | d890ec372928139406e116a7a777de7e6713d315 (diff) | |
download | org.eclipse.tracecompass-8634587a1e5d363d9cd748524c6dbde4963bc536.tar.gz org.eclipse.tracecompass-8634587a1e5d363d9cd748524c6dbde4963bc536.tar.xz org.eclipse.tracecompass-8634587a1e5d363d9cd748524c6dbde4963bc536.zip |
lttng.control: make live timer a long
Change-Id: Ia24d268ac4ead13fc86e057aebc236a43d23ec8a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38234
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'org.eclipse.tracecompass.lttng2.control.ui')
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java b/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java index 9a341d8399..d81b1b9b9e 100644 --- a/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java +++ b/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java @@ -246,7 +246,7 @@ public class CreateSessionDialog extends TitleAreaDialog implements ICreateSessi /** * The live delay */ - private Integer fLiveDelay = 0; + private Long fLiveDelay = 0L; /** * The live url. */ @@ -807,7 +807,7 @@ public class CreateSessionDialog extends TitleAreaDialog implements ICreateSessi if (fParent.isLiveSupported() && fLiveButton != null) { fIsLive = fLiveButton.getSelection(); - fLiveDelay = LTTngControlServiceConstants.UNUSED_VALUE; + fLiveDelay = Long.valueOf(LTTngControlServiceConstants.UNUSED_VALUE); fLiveUrl = SessionInfo.DEFAULT_LIVE_NETWORK_URL; fLivePort = SessionInfo.DEFAULT_LIVE_PORT; } @@ -848,7 +848,7 @@ public class CreateSessionDialog extends TitleAreaDialog implements ICreateSessi if (fIsLive && fLiveGroup != null) { String liveDelayText = fLiveDelayText.getText(); try { - fLiveDelay = liveDelayText.equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.valueOf(liveDelayText); + fLiveDelay = liveDelayText.equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.valueOf(liveDelayText); fLivePort = Integer.valueOf(fLivePortText.getText()); fLiveUrl = fLiveHostAddressText.getText(); } catch (NumberFormatException e) { diff --git a/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/service/LTTngControlService.java b/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/service/LTTngControlService.java index 473f1cc744..1ddbf77995 100644 --- a/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/service/LTTngControlService.java +++ b/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/service/LTTngControlService.java @@ -285,7 +285,7 @@ public class LTTngControlService implements ILttngControlService { } matcher = LTTngControlServiceConstants.LIST_LIVE_TIMER_INTERVAL_PATTERN.matcher(line); if (matcher.matches()) { - int liveDelay = Integer.parseInt(matcher.group(1)); + long liveDelay = Long.parseLong(matcher.group(1)); if (liveDelay > 0) { sessionInfo.setLive(true); sessionInfo.setLiveUrl(SessionInfo.DEFAULT_LIVE_NETWORK_URL); |