about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-11-03 22:07:59 +0530
committerAndinus <andinus@nand.sh>2021-11-03 22:07:59 +0530
commitc9e3cb29fedcbe7e247d5abfb61bc4f0024ce5f4 (patch)
tree162130a2c5281117ec9b21bdade84846321ce9e7
parent7aee5a34cf11510c57601803ef267401c90dcf7f (diff)
downloadfornax-c9e3cb29fedcbe7e247d5abfb61bc4f0024ce5f4.tar.gz
Fix log-level usage in ffmpeg, update maze
-rw-r--r--algorithms/java/DFS.java14
-rw-r--r--lib/Fornax/CLI.rakumod2
2 files changed, 8 insertions, 8 deletions
diff --git a/algorithms/java/DFS.java b/algorithms/java/DFS.java
index 6b46ca6..ff4567d 100644
--- a/algorithms/java/DFS.java
+++ b/algorithms/java/DFS.java
@@ -55,13 +55,13 @@ public class DFS {
 
     public static void main(String[] args) {
         char[][] maze = {
-            {'.', '#', '.', '#', '.'},
-            {'.', '.', '.', '.', '.'},
-            {'.', '#', '.', '.', '$'},
-            {'.', '.', '.', '#', '.'},
-            {'.', '.', '.', '.', '#'},
-            {'.', '#', '#', '.', '.'},
-            {'.', '.', '.', '.', '.'},
+            {'.', '#', '.', '#', '.', '.', '#', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '.'},
+            {'.', '#', '.', '.', '#', '.', '.', '$'},
+            {'.', '.', '.', '#', '.', '#', '.', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '#'},
+            {'.', '#', '#', '.', '.', '.', '#', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '.'},
         };
 
         boolean[][] visited = new boolean[maze.length][maze[0].length];
diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod
index 9f6c569..110f587 100644
--- a/lib/Fornax/CLI.rakumod
+++ b/lib/Fornax/CLI.rakumod
@@ -123,7 +123,7 @@ multi sub MAIN(
     put "[fornax] Creating a slideshow." if $verbose;
 
     my Str $log-level = $verbose ?? "info" !! "error";
-    run «ffmpeg -loglevel "$verbose" -r "$frame-rate" -i "$output/\%08d.png"
+    run «ffmpeg -loglevel "$log-level" -r "$frame-rate" -i "$output/\%08d.png"
                 -vcodec libx264 -crf 28 -pix_fmt yuv420p "$output/solution.mp4"»;
     put "[fornax] Output: '$output'";
 }