diff options
author | monsta <[email protected]> | 2016-02-29 18:05:55 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-29 18:12:42 +0300 |
commit | 8110ba34b9b447353e1e344ea8fa92c30fe9bd78 (patch) | |
tree | fb0bdf3ee1c897d946f630c658bb3601dfea814c /src | |
parent | f3dc995d287e4a62b7242bf467f3a9a5742c3641 (diff) | |
download | mate-system-monitor-8110ba34b9b447353e1e344ea8fa92c30fe9bd78.tar.bz2 mate-system-monitor-8110ba34b9b447353e1e344ea8fa92c30fe9bd78.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
Diffstat (limited to 'src')
-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); } } |