https://bugs.kde.org/show_bug.cgi?id=383019
pditc...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pditc...@gmail.com --- Comment #3 from pditc...@gmail.com --- Here's the patched back to kibibytes /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.net/contents/ui/net.qml if anyone wants to patch up to sane units themselves (just replace the file contents with the code below and restart plasmashell with `killall plasmashell && plasmashell` : ``` /* * Copyright 2015 Marco Martin <m...@kde.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * * You should have received a copy of the GNU Library General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.0 import QtQuick.Layouts 1.1 import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons Applet { id: root onSourceAdded: { if (source.indexOf("network/interfaces/lo/") !== -1) { return; } var match = source.match(/^network\/interfaces\/(\w+)\/transmitter\/data$/); if (match) { var rxSource = "network/interfaces/" + match[1] + "/receiver/data"; root.addSource(source, match[1], rxSource, match[1]); } } delegate: DoublePlotter { function formatData(data) { var value = data.value if (value > 1024) { return i18nc("%1 is the displayed data transfer speed in mebibytes per second", "%1 MiB/s", (value / 1024).toFixed(1)); } return i18nc("%1 is the displayed data transfer speed in kibibytes per second", "%1 KiB/s", (value)); } } } ``` -- You are receiving this mail because: You are watching all bug changes.