Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[NS3] fixing the remains value when updating actions state
[simgrid.git] / src / surf / ns3 / ns3_simulator.cc
index d731aa8..bd52efc 100644 (file)
@@ -83,6 +83,10 @@ double NS3Sim::get_remains_from_socket(void *socket){
        return ((MySocket *)socket)->remaining;
 }
 
+double NS3Sim::get_sent_from_socket(void *socket){
+  return ((MySocket *)socket)->sentBytes;
+}
+
 double NS3Sim::get_last_amount_sent_from_socket(void *socket){
        return ((MySocket *)socket)->last_amount_sent;
 }