aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/Rtorrent.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/Rtorrent.vue')
-rw-r--r--src/components/services/Rtorrent.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/services/Rtorrent.vue b/src/components/services/Rtorrent.vue
index ed8e7a6..59dd843 100644
--- a/src/components/services/Rtorrent.vue
+++ b/src/components/services/Rtorrent.vue
@@ -41,7 +41,7 @@ const displayRate = (rate) => {
41 41
42 return ( 42 return (
43 Intl.NumberFormat(undefined, { maximumFractionDigits: 2 }).format( 43 Intl.NumberFormat(undefined, { maximumFractionDigits: 2 }).format(
44 rate || 0 44 rate || 0,
45 ) + ` ${units[i]}/s` 45 ) + ` ${units[i]}/s`
46 ); 46 );
47}; 47};
@@ -105,8 +105,8 @@ export default {
105 return this.getXml(methodName).then((xml) => 105 return this.getXml(methodName).then((xml) =>
106 parseInt( 106 parseInt(
107 xml.getElementsByTagName("value")[0].firstChild.textContent, 107 xml.getElementsByTagName("value")[0].firstChild.textContent,
108 10 108 10,
109 ) 109 ),
110 ); 110 );
111 }, 111 },
112 // Fetch the numer of torrents by requesting the download list 112 // Fetch the numer of torrents by requesting the download list
@@ -143,7 +143,7 @@ export default {
143 return response.text(); 143 return response.text();
144 }) 144 })
145 .then((text) => 145 .then((text) =>
146 Promise.resolve(new DOMParser().parseFromString(text, "text/xml")) 146 Promise.resolve(new DOMParser().parseFromString(text, "text/xml")),
147 ); 147 );
148 }, 148 },
149 }, 149 },