瀏覽代碼

Change cooldown

Billy Barrow 1 月之前
父節點
當前提交
a74036c3a0
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/Application.vala
  2. 1 1
      webmify.service

+ 2 - 2
src/Application.vala

@@ -36,10 +36,10 @@ namespace Webmify {
         print(@"[Webmify] Creating $workers workers.\n");
         queue.parallel_iterate(path => {
             var filename = Path.get_basename(path);
-            print(@"[Webmify] Dequeue \"$filename\"\n");
+            print(@"[Webmify] Dequeue \"$filename\" (30s cooldown)\n");
 
             // Cooldown to allow for file to fully copy
-            Thread.usleep(10000000);
+            Thread.usleep(30000000);
             
             var video_file = File.new_for_path(path);
             var video_info = new VideoInfo(video_file);

+ 1 - 1
webmify.service

@@ -3,7 +3,7 @@ Description=Webmify Transcoder
 After=multi-user.target
 
 [Service]
-ExecStart=/usr/bin/webmify in out work
+ExecStart=/usr/bin/webmify in out work 6
 Type=simple
 
 [Install]