From: Michal Sojka Date: Fri, 27 Nov 2009 12:15:18 +0000 (+0100) Subject: Don't try to calculate budget from bytes/s X-Git-Tag: jsa-paper-casestudy~21 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/demo.git/commitdiff_plain/9bb70c1442aab23c3376b575acb8a788824f6434 Don't try to calculate budget from bytes/s --- diff --git a/build/recorder/ffmpeg.c b/build/recorder/ffmpeg.c index badf385..291f2a9 100644 --- a/build/recorder/ffmpeg.c +++ b/build/recorder/ffmpeg.c @@ -3975,9 +3975,10 @@ int frsh_stuff() cpu_budget = fosa_msec_to_rel_time(5); cpu_period = fosa_msec_to_rel_time(1000/50); -#define DISK_THROUGHPUT 20277LLU /* units??? probably MB/s */ - disk_budget = fosa_nsec_to_rel_time(1000000000LLU/*nsec/s*/ * 50000 /*bytes/s*/ - / (DISK_THROUGHPUT*1000000) /* bytes */); // is this correct? +/* #define DISK_THROUGHPUT 20277LLU /\* units??? probably MB/s *\/ */ +/* disk_budget = fosa_nsec_to_rel_time(1000000000LLU/\*nsec/s*\/ * 500000 /\*bytes/s*\/ */ +/* / (DISK_THROUGHPUT*1000000) /\* bytes *\/); // is this correct? */ + disk_budget = fosa_msec_to_rel_time(2); disk_period = fosa_msec_to_rel_time(1000/50); /* Contract negotiation for CPU */