-1 cuts the trailing s if the time postfix is longer than 1 char.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 11 Apr 2008 12:23:19 -0700
changeset 2953 db884a56c5c1
parent 2952 d5047d6ce4ce
child 2954 a1a6028e4c39
-1 cuts the trailing s if the time postfix is longer than 1 char.
src/simulator/time.cc
--- a/src/simulator/time.cc	Fri Apr 11 11:27:09 2008 -0700
+++ b/src/simulator/time.cc	Fri Apr 11 12:23:19 2008 -0700
@@ -230,7 +230,7 @@
       is.setstate (std::ios_base::failbit);
       return is;
     }
-  std::string trailer = value.substr(n, value.size ()-1-n);
+  std::string trailer = value.substr(n, value.size ()-n);
   std::istringstream iss;
   iss.str (value.substr(0, n));