Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. diff --git test/test_cpu.c test/test_cpu.c
  2. index 69d9ceb..f93189c 100644
  3. --- test/test_cpu.c
  4. +++ test/test_cpu.c
  5. @@ -60,6 +60,7 @@ void print_cpu_info(struct sa_cpu* cpu) {
  6. }
  7.  
  8. void check_range(float cpu_time) {
  9. + cpu_time = round(cpu_time);
  10. if (cpu_time > 100.0 || cpu_time < 0.0) {
  11. printf("%s:%d ERROR: cpu time out of range: %f\n", __FILE__, __LINE__, cpu_time);
  12. error = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement