summaryrefslogtreecommitdiff
path: root/computeblocklists
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-12-08 17:51:32 +0100
committerMichael Schroeder <mls@suse.de>2009-12-08 17:51:32 +0100
commitc8b33e430bfb40b80df43249279bd561d874d786 (patch)
tree12a32184d9f367d45cb0574877f1fd20b3864fa6 /computeblocklists
parentd32fc3a74edbc477871d62ce90e7f8ea813f10e2 (diff)
- fix whitespace (revert large part of e7cba6)
Diffstat (limited to 'computeblocklists')
-rwxr-xr-xcomputeblocklists14
1 files changed, 7 insertions, 7 deletions
diff --git a/computeblocklists b/computeblocklists
index c93b3cb..ff8cebf 100755
--- a/computeblocklists
+++ b/computeblocklists
@@ -75,16 +75,16 @@ for my $file (@ARGV) {
} else {
# blocks are non-contiguous
if($lastblock+1 != $block) {
- # check if we skipped some that form a range
- if($firstblock != $lastblock) {
- printf "-$lastblock";
- }
- print " $block";
- $firstblock = $block;
+ # check if we skipped some that form a range
+ if($firstblock != $lastblock) {
+ printf "-$lastblock";
+ }
+ print " $block";
+ $firstblock = $block;
}
# last block, check if contiguous
if($b+1==$blocks && $lastblock+1 == $block) {
- print "-$block";
+ print "-$block";
}
}
$lastblock = $block;