]> git.scottworley.com Git - planeteer/commitdiff
Show progress less frequently
authorScott Worley <sworley@chkno.net>
Wed, 30 Nov 2011 16:41:20 +0000 (08:41 -0800)
committerScott Worley <sworley@chkno.net>
Wed, 30 Nov 2011 16:41:20 +0000 (08:41 -0800)
planeteer.go

index e3c04cfb3bd9690bbd5e465605240b788b34c6fc..72f9935f453ea205f3534e2a81a5c1daa8fc4867 100644 (file)
@@ -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))))
        }