Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-27 17:23:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef7a02e6438e21372763d67011dfe90dc796e0bd
ef7a02e6
1 parent
df8414af
refine the disk io busy, can >1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
trunk/src/app/srs_app_utility.cpp
trunk/src/app/srs_app_utility.hpp
trunk/src/app/srs_app_utility.cpp
查看文件 @
ef7a02e
...
...
@@ -526,7 +526,7 @@ void srs_update_disk_stat()
unsigned
int
ticks
=
r
.
ticks
-
o
.
ticks
;
// busy in [0, 1], where 0.1532 means 15.32%
r
.
busy
=
srs_min
(
1
,
(
float
)(
ticks
/
delta_ms
)
);
r
.
busy
=
(
float
)(
ticks
/
delta_ms
);
}
}
...
...
trunk/src/app/srs_app_utility.hpp
查看文件 @
ef7a02e
...
...
@@ -339,7 +339,7 @@ public:
int
out_KBps
;
// @see: print_partition_stats() of iostat.c
// but its value is [0,
1
], for instance, 0.1532 means 15.32%.
// but its value is [0,
+
], for instance, 0.1532 means 15.32%.
float
busy
;
public
:
...
...
请
注册
或
登录
后发表评论