Commits

Anonymous committed 27afbd5

in Process.cpp commented out Message.display() and Request.display()

Comments (0)

Files changed (1)

 {
   if (!up) { return; }  // Do nothing if Process down
 
-  if (simulation->getTime() - r.getTimestamp() > delta) {
+  const int timeSince = simulation->getTime() - r.getTimestamp();
+
+  if (timeSince > delta) {
     // This represents rejection of the original request.
-    cout << "REJECT: Request " << r.getID() << " [" << simulation->status() << "]\n";
+    cout << "REJECT: Request " << r.getID() << " (" << timeSince << ", " << delta << ") " << " [" << simulation->status() << "]\n";
   }
   else {
     // Create new message objects to ask for votes
 
     if (r->getTTA() == 0) {
       vote(*r);
-      r->display();
+      // r->display();
     }
   }
   vector<Request> Temp(requests.begin(), requests.end());
     m->tick();
     if (m->getTTA() == 0) {
        vote(*m);
-       m->display();
+       // m->display();
     }
   }
   vector<Message> Temp(messages.begin(), messages.end());