fixed for print in long long timestamp
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Nov 2004 18:59:30 +0000 (18:59 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Nov 2004 18:59:30 +0000 (18:59 +0000)
examples/pose/HiSim/Main/Channel.C
examples/pose/HiSim/Main/Nic.C

index b32afb9be08a7ffc1a34c65a609fe4cd41996687..d417040076d06ec0783935a8c158cf72d24b0701 100644 (file)
@@ -26,7 +26,7 @@ void Channel::recvPacket(Packet *copyP) {
         curInterval = ovt/config.collection_interval;
         if(curInterval > prevIntervalStart) {
         prevIntervalStart = curInterval;
-        parent->CommitPrintf("%d->%d %ld %f\n",nodeid,portid,prevIntervalStart,(float)counter/config.collection_interval);
+        parent->CommitPrintf("%d->%d %lld %f\n",nodeid,portid,(CmiInt8)prevIntervalStart,(float)counter/config.collection_interval);
         counter=0;
         }
         }
index 21ce48044abe459db7d6ac8bdd08d71c096904ab..38367d4869129aaae9740215c760e6bee023d041 100644 (file)
@@ -124,8 +124,8 @@ void NetInterface::recvPacket(Packet *p) {
         curInterval = ovt/config.collection_interval;
         if((curInterval > prevIntervalStart) && (numRecvd)) {
         prevIntervalStart = curInterval;
-        parent->CommitPrintf("%d*%d %d %lld %.2f\n",nicConsts->id-config.nicStart,numRecvd,
-        hops,prevIntervalStart,(float)counter/numRecvd);counter=0; numRecvd = 0;
+        parent->CommitPrintf("%d*%d %d %lld %.2f\n",nicConsts->id-config.nicStart,numRecvd, hops,(POSE_TimeType)prevIntervalStart,(float)counter/numRecvd);
+       counter=0; numRecvd = 0;
         }
         }
         counter += ((POSE_TimeType)(100.0 * extra/(ovt-ms.origovt))) * (p->hdr.totalLen);