1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the disk io busy, can >1

This commit is contained in:
winlin 2014-07-27 17:23:07 +08:00
parent df8414af63
commit ef7a02e643
2 changed files with 2 additions and 2 deletions

View file

@ -526,7 +526,7 @@ void srs_update_disk_stat()
unsigned int ticks = r.ticks - o.ticks; unsigned int ticks = r.ticks - o.ticks;
// busy in [0, 1], where 0.1532 means 15.32% // 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);
} }
} }

View file

@ -339,7 +339,7 @@ public:
int out_KBps; int out_KBps;
// @see: print_partition_stats() of iostat.c // @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; float busy;
public: public: