From: Scott Worley Date: Wed, 30 Nov 2011 16:41:20 +0000 (-0800) Subject: Show progress less frequently X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/c5ac83cefbee6584612b4ceddbcc52358ad37068 Show progress less frequently --- diff --git a/planeteer.go b/planeteer.go index e3c04cf..72f9935 100644 --- a/planeteer.go +++ b/planeteer.go @@ -520,7 +520,7 @@ func CellValue(data planet_data, dims []int, table []State, addr []int) int32 { // UI: Progress bar cell_filled_count++ - if cell_filled_count&0xff == 0 { + if cell_filled_count&0xfff == 0 { print(fmt.Sprintf("\r%3.1f%%", 100*float64(cell_filled_count)/float64(StateTableSize(dims)))) }