From 781de97c680f90902a82279b3c6615ad02a9ccf5 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Tue, 19 Jan 2021 15:06:27 +0000 Subject: [PATCH] Make thumbnail generation slower This reduces the IO stress --- src/library/library.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/library.cr b/src/library/library.cr index 1dc426a..4f62c58 100644 --- a/src/library/library.cr +++ b/src/library/library.cr @@ -232,7 +232,7 @@ class Library e.generate_thumbnail # Sleep after each generation to minimize the impact on disk IO # and CPU - sleep 0.5.seconds + sleep 1.seconds end @thumbnails_count += 1 end