fix stream float precision of websocket messages

webclient_js
Michal Fratczak 2019-09-18 11:46:39 +02:00
rodzic b56c5cabf1
commit fbbdff5d47
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -32,6 +32,7 @@ struct HabdecMessage
bool is_binary_ = false;
bool to_all_clients_ = false;
std::stringstream data_stream_;
HabdecMessage() { data_stream_.precision(12); }
};
// handles request and returns list of reponses