| OLD | NEW |
| 1 # 2012 August 6 | 1 # 2012 August 6 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 set iNext [lindex $::write_list $i] | 60 set iNext [lindex $::write_list $i] |
| 61 if {$iNext==($iPrev+1)} { | 61 if {$iNext==($iPrev+1)} { |
| 62 incr nForward | 62 incr nForward |
| 63 } elseif {$iNext==($iPrev-1)} { | 63 } elseif {$iNext==($iPrev-1)} { |
| 64 incr nBackward | 64 incr nBackward |
| 65 } else { | 65 } else { |
| 66 incr nNoncont | 66 incr nNoncont |
| 67 } | 67 } |
| 68 set iPrev $iNext | 68 set iPrev $iNext |
| 69 } | 69 } |
| 70 puts -nonewline \ | 70 if {0} { |
| 71 " (forward=$nForward, back=$nBackward, noncontiguous=$nNoncont)" | 71 puts -nonewline \ |
| 72 " (forward=$nForward, back=$nBackward, noncontiguous=$nNoncont)" |
| 73 } |
| 72 | 74 |
| 73 expr {$nForward > 2*($nBackward + $nNoncont)} | 75 expr {$nForward > 2*($nBackward + $nNoncont)} |
| 74 } {1} | 76 } {1} |
| 75 db close | 77 db close |
| 76 tvfs delete | 78 tvfs delete |
| 77 | 79 |
| 78 finish_test | 80 finish_test |
| OLD | NEW |