Skip to content

Commit

Permalink
fix: 火狐浏览器进程的磁盘写入速率达到8EB/s
Browse files Browse the repository at this point in the history
修复火狐浏览器进程的磁盘写入速率达到8EB/s

Log: cancelled_write_bytes时磁盘写入速率达到8EB/s

Bug: https://pms.uniontech.com/bug-view-212249.html
  • Loading branch information
jeffshuai committed Sep 6, 2023
1 parent d177c1e commit 9e40556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepin-system-monitor-main/common/sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class SampleFrame<DiskIO>
auto cwdiff = (ccwb < pcwb) ? 0 : (ccwb - pcwb);
// calculate read/write speed
rdio = qreal(rdiff) / interval;
wrio = qreal(wdiff - cwdiff) / interval;
wrio = (wdiff < cwdiff) ? 0 :qreal(wdiff - cwdiff) / interval;

return {rdio, wrio};
}
Expand Down

0 comments on commit 9e40556

Please sign in to comment.