| 562 | } |
| 563 | |
| 564 | std::string Config::formatInterval(const Interval &x) |
| 565 | { |
| 566 | if (x.first == 0.0f && x.second == 1.0f) { |
| 567 | return ""; |
| 568 | } |
| 569 | return deskflow::string::sprintf("(%d,%d)", (int)(x.first * 100.0f + 0.5f), (int)(x.second * 100.0f + 0.5f)); |
| 570 | } |
| 571 | |
| 572 | void Config::readSection(ConfigReadContext &s) |
| 573 | { |