Commit d062e9ea7c180bcc75bf20e0dfc3b0ec0a488c4d

Thomas de Grivel 2024-10-10T11:08:55

wip fx speed

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/httpd/fx/app/views/fx_view.kc3 b/httpd/fx/app/views/fx_view.kc3
index 2320b58..1ae0db7 100644
--- a/httpd/fx/app/views/fx_view.kc3
+++ b/httpd/fx/app/views/fx_view.kc3
@@ -62,7 +62,7 @@ defmodule FXView do
             file = if (size == :small) do
               sh_path = Sh.escape(path)
               Str.slice(system(["sh", "-c",
-                                "head -c 80 #{sh_path} | hexdump -C"]),
+                                "head -c 80 #{sh_path} | hexdump -C -"]),
                 0, 77) + "..."
             else
               system(["hexdump", "-C", path])