Changeset 57 for branches/mk/cheesecake/cheesecake_index.py
- Timestamp:
- 06/15/06 07:39:37 (7 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r44 r57 25 25 from math import ceil 26 26 27 from _util import pad_with_dots, pad_left_spaces, pad_ msg, pad_line27 from _util import pad_with_dots, pad_left_spaces, pad_right_spaces, pad_msg, pad_line 28 28 from _util import run_cmd, command_successful 29 29 from _util import unzip_package, untar_package … … 326 326 327 327 def _print_info_one(self): 328 print "%s%s (%s)" % (pad_with_dots(self.name), 329 pad_left_spaces(self.value), 330 self.details) 328 print "%s (%s)" % (pad_msg(self.name, self.value), self.details) 331 329 332 330 def _print_info_many(self): … … 340 338 print pad_msg("%s INDEX (ABSOLUTE)" % self.name, self.value) 341 339 msg = pad_msg("%s INDEX (RELATIVE)" % self.name, percentage) 342 msg += " (%d out of a maximum of %d points is %d%%)" %\340 msg += " (%d out of a maximum of %d points is %d%%)" %\ 343 341 (self.value, max_value, percentage) 344 342 … … 1144 1142 print pad_line("=") 1145 1143 print pad_msg("OVERALL CHEESECAKE INDEX (ABSOLUTE)", cheesecake_index) 1146 print "%s (%d out of a maximum of %d points is %d%%)" % \1144 print "%s (%d out of a maximum of %d points is %d%%)" % \ 1147 1145 (pad_msg("OVERALL CHEESECAKE INDEX (RELATIVE)", percentage), 1148 1146 cheesecake_index,
