This commit is contained in:
fros4943 2008-12-04 13:08:55 +00:00
parent 3893969096
commit 5e6b02d1b9

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: MspClock.java,v 1.4 2008/10/29 08:36:12 fros4943 Exp $ * $Id: MspClock.java,v 1.5 2008/12/04 13:08:55 fros4943 Exp $
*/ */
package se.sics.cooja.mspmote.interfaces; package se.sics.cooja.mspmote.interfaces;
@ -70,7 +70,7 @@ public class MspClock extends Clock {
} }
public int getDrift() { public int getDrift() {
return myMote.cycleDrift / MspMote.NR_CYCLES_PER_MSEC; return (int) (myMote.cycleDrift / MspMote.NR_CYCLES_PER_MSEC);
} }
public JPanel getInterfaceVisualizer() { public JPanel getInterfaceVisualizer() {