16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 15:59:18 +02:00

copydata communication fix, update loop tweaks

This commit is contained in:
tmj-fstate
2017-03-04 13:24:34 +01:00
parent 0e3b414f8f
commit 39b8fbfb86
8 changed files with 97 additions and 64 deletions

View File

@@ -75,10 +75,8 @@ std::string Now() {
std::time_t timenow = std::time( nullptr );
std::tm tm = *std::localtime( &timenow );
std::stringstream converter;
std::string output;
converter << std::put_time( &tm, "%c" );
converter >> output;
return output;
return converter.str();
/* char buffer[ 256 ];
sprintf( buffer,