Changeset fcfac250 in mainline for uspace/lib/fmtutil/fmtutil.c
- Timestamp:
- 2011-08-21T08:15:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 19d007e
- Parents:
- e406736
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fmtutil/fmtutil.c
re406736 rfcfac250 145 145 if (i == len) break; 146 146 if (done_words) { 147 // TODO: use better formula 148 size_t spaces = 1 + (excess_spaces / 149 (words - 1)); 147 size_t spaces = 1 + (((done_words * 148 excess_spaces) / (words - 1)) - 149 (((done_words - 1) * excess_spaces) / 150 (words - 1))); 150 151 for (j = 0; j < spaces; j++) { 151 152 putchar(' ');
Note:
See TracChangeset
for help on using the changeset viewer.