]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- restore stream settings 114/head
authorArvin Schnell <aschnell@suse.de>
Tue, 23 Sep 2014 15:24:48 +0000 (17:24 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 23 Sep 2014 15:24:48 +0000 (17:24 +0200)
snapper/AppUtil.cc

index 8635aa1e18ed390076bf5dbf0c98629995bc14c7..f3804bf9ab41c06eac0b3c4f5e29a1fe4f163866 100644 (file)
@@ -35,6 +35,7 @@
 #include <dirent.h>
 #include <mntent.h>
 #include <boost/algorithm/string.hpp>
+#include <boost/io/ios_state.hpp>
 
 #include "snapper/Log.h"
 #include "snapper/AppUtil.h"
@@ -371,6 +372,7 @@ namespace snapper
 
     std::ostream& operator<<(std::ostream& s, const StopWatch& sw)
     {
+       boost::io::ios_all_saver ias(s);
        return s << fixed << sw.read() << "s";
     }