summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-02-29 18:05:55 +0300
committermonsta <[email protected]>2016-03-21 15:41:14 +0300
commit359dade1fb01ca371eee6f5302cfa0704aa0ad2b (patch)
tree46f7a0f1398aeb443491a1e11c7960f76948ad1b
parenta4e189cf879812e66d08fd7dd3cf9544eda01fcc (diff)
downloadmate-system-monitor-359dade1fb01ca371eee6f5302cfa0704aa0ad2b.tar.bz2
mate-system-monitor-359dade1fb01ca371eee6f5302cfa0704aa0ad2b.tar.xz
fix copy-paste error, use proper type, keep it simple
- wrong function name introduced in https://github.com/mate-desktop/mate-system-monitor/commit/9ae0be5ccf7df2f35c13653da97771b06cf6603f - format_rate function already returns a string, no need to convert
-rw-r--r--src/util.cpp5
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);
}
}