Overview
Comment: | Updated to fix display problem with file sizes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 498cc9030858f165f828647c4301e999113579b8 |
User & Date: | rkeene on 2010-09-26 04:47:29 |
Other Links: | manifest | tags |
Context
2010-09-26
| ||
04:47 | Updated to include OS and CPU in Kit build info check-in: 0f7ae7bf19 user: rkeene tags: trunk | |
04:47 | Updated to fix display problem with file sizes check-in: 498cc90308 user: rkeene tags: trunk | |
04:47 | Updated to list failed builds in published reports check-in: f8d3a24687 user: rkeene tags: trunk | |
Changes
Modified build/test/publish-tests from [137a0321be] to [ccd0830569].
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
return [join $desc {, }] } proc pretty_print_size {size} { foreach unit [list "" K M G T P] { if {$size < 1024} { if {$size < 10} { set size [expr {round($size * 10) / 10.0}] } else { set size [expr {round($size)}] } return "$size [string trim ${unit}B]" } |
| |
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
return [join $desc {, }]
}
proc pretty_print_size {size} {
foreach unit [list "" K M G T P] {
if {$size < 1024} {
if {$size < 10 && $unit != ""} {
set size [expr {round($size * 10) / 10.0}]
} else {
set size [expr {round($size)}]
}
return "$size [string trim ${unit}B]"
}
|