mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 05:29:41 -06:00
Merge commit 'e8f89345aaedf24e583d5fc915a945ef7763b2d2' into feature/multiresvolume
* commit 'e8f89345aaedf24e583d5fc915a945ef7763b2d2': Replace spaces with underscores in node names
This commit is contained in:
@@ -255,6 +255,8 @@ void PerformanceManager::writeData(std::ofstream& out, const std::vector<float>&
|
||||
std::string PerformanceManager::formatLogName(std::string nodeName) {
|
||||
// Replace any colons with dashes
|
||||
std::replace(nodeName.begin(), nodeName.end(), ':', '-');
|
||||
// Replace spaces with underscore
|
||||
std::replace(nodeName.begin(), nodeName.end(), ' ', '_');
|
||||
return _logDir + "/" + _prefix + nodeName + _suffix + "." + _ext;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user