summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2011-10-13 17:35:29 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2011-10-13 17:35:29 -0400
commit782dfbe4414c29bc1d56b10dddfd1ea5334f8486 (patch)
tree6966a023f0deec5af53bfe8418a84ad09f2da82e
parentcd189db6697e56e9de3d53383751bb673b38d071 (diff)
Proper scaling
-rw-r--r--src/showst2.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/showst2.cpp b/src/showst2.cpp
index 338e50e..98f5c39 100644
--- a/src/showst2.cpp
+++ b/src/showst2.cpp
@@ -334,11 +334,10 @@ int main(int argc, char** argv)
334 334
335 rt = completions - releases; 335 rt = completions - releases;
336 response = where(completions == completions, 336 response = where(completions == completions,
337 (completions - releases) / (tsk->first.period / SCALE), 337 (completions - releases) / (tsk->first.period),
338 0.0); 338 0.0);
339 delta_exe = actual_exes - est_exes; 339 delta_exe = actual_exes - est_exes;
340 misses = where(completions > deadlines, 1, 0); 340 misses = where(completions > deadlines, 1, 0);
341 misses = blitz::sum(misses);
342 341
343 // task stats 342 // task stats
344 outs<< fixed 343 outs<< fixed
@@ -347,8 +346,8 @@ int main(int argc, char** argv)
347 <<tsk->first.period/SCALE<<"," 346 <<tsk->first.period/SCALE<<","
348 <<tsk->first.wcet/SCALE<<"," 347 <<tsk->first.wcet/SCALE<<","
349 <<sz<<"," 348 <<sz<<","
350 <<blitz::max(response)/SCALE<<"," 349 <<blitz::max(response)<<","
351 <<blitz::mean(response)/SCALE<<"," 350 <<blitz::mean(response)<<","
352 <<blitz::sum(misses)<<endl; 351 <<blitz::sum(misses)<<endl;
353 } 352 }
354 outs.close(); 353 outs.close();