File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 29
29
<p class =" fas fa-download" ></p >
30
30
{{ downRate }}
31
31
</span >
32
- <span class =" up monospace" >
33
- <p class =" fas fa-upload" ></p >
34
- {{ upRate }}
35
- </span >
36
32
</template >
37
33
</p >
38
34
</template >
@@ -82,9 +78,6 @@ export default {
82
78
downRate () {
83
79
return displayRate (this .dlSpeed );
84
80
},
85
- upRate () {
86
- return displayRate (this .ulSpeed );
87
- },
88
81
},
89
82
created () {
90
83
const downloadInterval = parseInt (this .item .downloadInterval , 10 ) || 0 ;
@@ -106,13 +99,6 @@ export default {
106
99
// Fetching download speed from "speed" (convert to KB/s if needed)
107
100
this .dlSpeed = parseFloat (response .queue .speed ) * 1024 ; // Convert MB to KB
108
101
109
- // Alternatively, you can also use kbpersec directly
110
- // this.dlSpeed = parseFloat(response.queue.kbpersec);
111
-
112
- // For upload speed, you would need a corresponding field in the API response.
113
- // Assuming there's no direct upload speed in the response, you can modify as needed.
114
- this .ulSpeed = 0 ; // Placeholder for upload speed (API might need to provide this)
115
-
116
102
} catch (e) {
117
103
this .error = true ;
118
104
console .error (e);
You can’t perform that action at this time.
0 commit comments