refixed previous commitprintf
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Nov 2004 23:16:00 +0000 (23:16 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Nov 2004 23:16:00 +0000 (23:16 +0000)
examples/pose/HiSim/Main/Channel.C
examples/pose/HiSim/Main/Nic.C

index d417040076d06ec0783935a8c158cf72d24b0701..e9da0aa50531e8249d2bea8c5e4a8e24725e7bc9 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 %lld %f\n",nodeid,portid,(CmiInt8)prevIntervalStart,(float)counter/config.collection_interval);
+        parent->CommitPrintf("%d->%d %lld %f\n",nodeid,portid,prevIntervalStart,(float)counter/config.collection_interval);
         counter=0;
         }
         }
index b4e91a025b7343044ec1565850ca7f11e757b954..d877db3f85775b181083e3bad392748d41441c84 100644 (file)
@@ -124,7 +124,7 @@ 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,(CmiInt8)prevIntervalStart,(float)counter/numRecvd);
+        parent->CommitPrintf("%d*%d %d %lld %.2f\n",nicConsts->id-config.nicStart,numRecvd, hops,prevIntervalStart,(float)counter/numRecvd);
        counter=0; numRecvd = 0;
         }
         }