π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π SABnzbd widget mb/s to MB/s (#2343)
Alicia Sykes258b4bd7df89
diff --git a/src/components/Widgets/Sabnzbd.vue b/src/components/Widgets/Sabnzbd.vueindex 02c35321..0cb15b31 100644--- a/src/components/Widgets/Sabnzbd.vue+++ b/src/components/Widgets/Sabnzbd.vue@@ -57,12 +57,12 @@ export default {},},methods: {- /* Reads the kbpersec value of the server status, converts to mb/s if over 1024 kb. */+ /* Reads the kbpersec value of the server status, converts to MB/s if over 1024 KB. */processKBperSec(kbpersec) {if (kbpersec <= 1024) {- return `${Number(kbpersec).toFixed(0)} kb/s`;+ return `${Number(kbpersec).toFixed(0)} KB/s`;} else {- return `${Number(kbpersec / 1024).toFixed(1)} mb/s`;+ return `${Number(kbpersec / 1024).toFixed(1)} MB/s`;}},/* Reads the bool status output of the server status to append the correct icon */