Skip to content

Commit 8be4f15

Browse files
authored
Merge pull request #2 from fedor-romanovskii/issue/#1_fix_sample_decoder
Fix SampleDecoder shards order
2 parents 920fec0 + ce5fdfe commit 8be4f15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ReedSolomon.NET.Sample/SampleDecoder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static void EntryPoint(string[] args)
2020
// var shardsList = Directory.GetFiles(@"path_to_directory/", "data.bin.*");
2121
// Exclude the file that name end by .bin
2222
var shardsList = Directory.GetFiles(@"path_to_directory/", "data.extension.*")
23+
.OrderBy(file => int.Parse(file.Split('.').Last()))
2324
.Where(file => !file.EndsWith(".extension")).ToList();
2425
var shardsCount = shardsList.Count;
2526
var shardPresent = new bool[TotalShards];

0 commit comments

Comments
 (0)