Changeset 1433ecda in mainline for uspace/app/testread/testread.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/testread/testread.c
r47b2d7e3 r1433ecda 87 87 88 88 /* Skip program name */ 89 --argc; ++argv; 89 --argc; 90 ++argv; 90 91 91 92 if (argc > 0 && str_cmp(*argv, "--no-check") == 0) { 92 93 check_enabled = false; 93 --argc; ++argv; 94 --argc; 95 ++argv; 94 96 } 95 97 96 98 if (argc > 0 && str_cmp(*argv, "--no-progress") == 0) { 97 99 progress = false; 98 --argc; ++argv; 100 --argc; 101 ++argv; 99 102 } 100 103 … … 156 159 if (last_run > 0 && total_time > 0) { 157 160 printf("%" PRIuOFF64 "M - time: %u s, " 158 "cur: %" PRIuOFF64 " B/s, avg: %" PRIuOFF64 " B/s\n",161 "cur: %" PRIuOFF64 " B/s, avg: %" PRIuOFF64 " B/s\n", 159 162 offset / MBYTE, last_run, 160 (offset -last_mark)/last_run,161 offset /total_time);163 (offset - last_mark) / last_run, 164 offset / total_time); 162 165 prev_time = cur_time; 163 166 last_mark = offset; … … 176 179 offset, 177 180 total_run_time, 178 offset /total_run_time);181 offset / total_run_time); 179 182 } 180 183
Note:
See TracChangeset
for help on using the changeset viewer.