Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 261 Bytes
#include "main.h"
void update_rates(int milliseconds) {
int fd;
for (fd=0; fd<MAXFD; ++fd) {
fdinfo[fd].rate = (fdinfo[fd].total_read - fdinfo[fd].total_read_last) * 1000LL / milliseconds;
fdinfo[fd].total_read_last = fdinfo[fd].total_read;
}
}