...
This commit is contained in:
@@ -185,7 +185,7 @@ struct MccMovementPathFile {
|
||||
|
||||
auto tp = std::chrono::duration_cast<d_t>(tdata.mountPos.epoch().UTC().time_since_epoch());
|
||||
|
||||
const std::string_view d_fmt = "{:f14.8}";
|
||||
const std::string_view d_fmt = "{:14.8f}";
|
||||
const auto v = std::views::repeat(d_fmt, 7) | std::views::join_with(' ');
|
||||
std::string fmt = "{} " + std::string(v.begin(), v.end()) + " {}";
|
||||
|
||||
@@ -205,7 +205,7 @@ struct MccMovementPathFile {
|
||||
_buffer.clear();
|
||||
}
|
||||
|
||||
bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios_base::trunc)
|
||||
bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios::out | std::ios::trunc)
|
||||
{
|
||||
if (filename.empty()) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user