MCPcopy Create free account
hub / github.com/Icinga/icinga2 / BunitStr

Function BunitStr

plugins/thresholds.cpp:192–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192std::wstring BunitStr(const Bunit& unit)
193{
194 switch (unit) {
195 case BunitB:
196 return L"B";
197 case BunitkB:
198 return L"kB";
199 case BunitMB:
200 return L"MB";
201 case BunitGB:
202 return L"GB";
203 case BunitTB:
204 return L"TB";
205 }
206 return NULL;
207}
208
209Tunit parseTUnit(const std::wstring& str) {
210 std::wstring wstr = to_lower_copy(str);

Callers 3

printOutputFunction · 0.85
printOutputFunction · 0.85
printOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected