DESCRIPTION

lttng/o.e.l.tmf.ui/.../TimeGraphScale.java: avoid "java.lang.ArithmeticException: / by zero": _timeDelta can no longer be Zero


COMMENTS

author: Brenden Conley
date: 2012-11-29 14:37:34.000000000

Patch Set 1:

Build Started https://hudson.eclipse.org/sandbox/job/linuxtools/680/ 

-------------------------------------
author: Brenden Conley
date: 2012-11-29 15:05:51.000000000

Patch Set 1: Verified

Build Successful 

https://hudson.eclipse.org/sandbox/job/linuxtools/680/ : SUCCESS

-------------------------------------
author: Luciana Barry
date: 2012-11-29 15:37:47.000000000

Patch Set 1: (1 inline comment)



Line:144, lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphScale.java -> I'm not sure which conditions cause the _timeDelta to be 0, but could it also happen for other remainders? If so, perhaps this safety check should be done after all the else-if branches.

-------------------------------------
