From 5e6b02d1b94d2c9407143238d2f1fa1df39e4c03 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 4 Dec 2008 13:08:55 +0000 Subject: [PATCH] ok --- .../mspsim/src/se/sics/cooja/mspmote/interfaces/MspClock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspClock.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspClock.java index df99655f1..fea6aed2b 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspClock.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspClock.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * 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; @@ -70,7 +70,7 @@ public class MspClock extends Clock { } public int getDrift() { - return myMote.cycleDrift / MspMote.NR_CYCLES_PER_MSEC; + return (int) (myMote.cycleDrift / MspMote.NR_CYCLES_PER_MSEC); } public JPanel getInterfaceVisualizer() {