Skip to content

Commit fbd8fef

Browse files
authored
chore(welcome): 修改下载时展示的数据结构 (#22)
1 parent c8d52f3 commit fbd8fef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/welcome.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl Component for Welcome {
304304
let total_mb = self.total as f64 / 1024.0 / 1024.0;
305305
let speed_mb = self.speed / 1024.0 / 1024.0;
306306

307-
spans.push(Span::raw(format!(" {:.2} MB/{:.2} MB", mb, total_mb)));
307+
spans.push(Span::raw(format!(" ({:.2} MB/{:.2} MB)", mb, total_mb)));
308308
spans.push(Span::raw(format!(" {:.2} MB/s", speed_mb)));
309309
} else {
310310
spans.push(Span::raw(format!(" {} / {}", self.downloaded, self.total)));

0 commit comments

Comments
 (0)