MCPcopy Create free account
hub / github.com/DFHack/dfhack / getDwarfAverage

Method getDwarfAverage

plugins/dwarfmonitor.cpp:868–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866 }
867
868 string getDwarfAverage(df::unit *unit, const size_t value)
869 {
870 auto label = getUnitName(unit);
871 auto result = pad_string(int_to_string(value), 3) + " " + label;
872
873 return result;
874 }
875
876 string getBreakdownAverage(activity_type activity, const size_t value)
877 {

Callers

nothing calls this directly

Calls 3

getUnitNameFunction · 0.85
pad_stringFunction · 0.85
int_to_stringFunction · 0.85

Tested by

no test coverage detected