MCPcopy Create free account
hub / github.com/deskflow/deskflow / formatInterval

Method formatInterval

src/lib/server/Config.cpp:564–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564std::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
572void Config::readSection(ConfigReadContext &s)
573{

Callers

nothing calls this directly

Calls 1

sprintfFunction · 0.85

Tested by

no test coverage detected