diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3573f00..b6019e3 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -597,10 +597,7 @@ namespace procman std::string format_network_rate(guint64 rate, guint64 max_rate) { - char* bytes = procman::format_size(rate, max_rate, ProcData::get_instance()->config.network_in_bits); - std::string formatted(bytes); - g_free(bytes); - return formatted; + return procman::format_rate(rate, max_rate, ProcData::get_instance()->config.network_in_bits); } } |