Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tests whether the file could be opened and removes the temporary file at the end
[simgrid.git] / src / mc / mc_record.cpp
index 53a3acc..78e34fe 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -63,9 +63,9 @@ RecordTrace parseRecordTrace(const char* data)
 
   const char* current = data;
   while (*current) {
-
     simgrid::mc::Transition item;
     int count = sscanf(current, "%d/%d", &item.pid_, &item.argument_);
+
     if(count != 2 && count != 1)
       throw std::invalid_argument("Could not parse record path");
     res.push_back(item);