]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Don't try to calculate budget from bytes/s
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 27 Nov 2009 12:15:18 +0000 (13:15 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 27 Nov 2009 12:15:18 +0000 (13:15 +0100)
build/recorder/ffmpeg.c

index badf385a9340d7e920135494c537a9ceaf640aef..291f2a93daccfce239cb45d48241f53bcf97f233 100644 (file)
@@ -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 */