mirror of https://github.com/bastienwirtz/homer
Removed upload
parent
f4c026fe2e
commit
b40d008400
|
@ -29,10 +29,6 @@
|
||||||
<p class="fas fa-download"></p>
|
<p class="fas fa-download"></p>
|
||||||
{{ downRate }}
|
{{ downRate }}
|
||||||
</span>
|
</span>
|
||||||
<span class="up monospace">
|
|
||||||
<p class="fas fa-upload"></p>
|
|
||||||
{{ upRate }}
|
|
||||||
</span>
|
|
||||||
</template>
|
</template>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
@ -82,9 +78,6 @@ export default {
|
||||||
downRate() {
|
downRate() {
|
||||||
return displayRate(this.dlSpeed);
|
return displayRate(this.dlSpeed);
|
||||||
},
|
},
|
||||||
upRate() {
|
|
||||||
return displayRate(this.ulSpeed);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const downloadInterval = parseInt(this.item.downloadInterval, 10) || 0;
|
const downloadInterval = parseInt(this.item.downloadInterval, 10) || 0;
|
||||||
|
@ -106,13 +99,6 @@ export default {
|
||||||
// Fetching download speed from "speed" (convert to KB/s if needed)
|
// Fetching download speed from "speed" (convert to KB/s if needed)
|
||||||
this.dlSpeed = parseFloat(response.queue.speed) * 1024; // Convert MB to KB
|
this.dlSpeed = parseFloat(response.queue.speed) * 1024; // Convert MB to KB
|
||||||
|
|
||||||
// Alternatively, you can also use kbpersec directly
|
|
||||||
// this.dlSpeed = parseFloat(response.queue.kbpersec);
|
|
||||||
|
|
||||||
// For upload speed, you would need a corresponding field in the API response.
|
|
||||||
// Assuming there's no direct upload speed in the response, you can modify as needed.
|
|
||||||
this.ulSpeed = 0; // Placeholder for upload speed (API might need to provide this)
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.error = true;
|
this.error = true;
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|
Loading…
Reference in New Issue