| 40 | |
| 41 | |
| 42 | std::string GraphiteWriter::getPerServerPath(const std::string & server_name, const std::string & root_path) |
| 43 | { |
| 44 | std::string path = root_path + "." + server_name; |
| 45 | std::replace(path.begin() + root_path.size() + 1, path.end(), '.', '_'); |
| 46 | return path; |
| 47 | } |