Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7e85d2b in mainline


Ignore:
Timestamp:
2019-01-01T17:45:11Z (2 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master
Children:
32236e5
Parents:
980611d5
Message:

perf: variable renaming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/perf/perf.c

    r980611d5 r7e85d2b  
    180180static int run_benchmarks(void)
    181181{
    182         unsigned int i = 0;
    183         unsigned int n = 0;
     182        unsigned int count_ok = 0;
     183        unsigned int count_fail = 0;
    184184
    185185        char *failed_names = NULL;
     
    190190                printf("%s (%s)\n", benchmarks[it]->name, benchmarks[it]->desc);
    191191                if (run_benchmark(benchmarks[it])) {
    192                         i++;
     192                        count_ok++;
    193193                        continue;
    194194                }
     
    206206                        failed_names = f;
    207207                }
    208                 n++;
    209         }
    210 
    211         printf("\nCompleted, %u benchmarks run, %u succeeded.\n", i + n, i);
     208                count_fail++;
     209        }
     210
     211        printf("\nCompleted, %u benchmarks run, %u succeeded.\n",
     212            count_ok + count_fail, count_ok);
    212213        if (failed_names)
    213214                printf("Failed benchmarks: %s\n", failed_names);
    214215
    215         return n;
     216        return count_fail;
    216217}
    217218
Note: See TracChangeset for help on using the changeset viewer.