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 b512744..857e26d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -601,10 +601,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); } } |