diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java b/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java index 63e7820..2f9fb9d 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java @@ -161,8 +161,11 @@ public class SortServer implements CommandExecutor { // Sortiermethode) elapsed = (double) ((endTime - startTime) / count); - if (!isSorted(b)) + + if (!isSorted(b)) { throw new Exception("ERROR not sorted"); + } + return elapsed; }