From 9aa3ad8e449b4515bd491d4b97937c0c1d05e260 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Sat, 13 Nov 2010 08:00:07 +0000 Subject: [PATCH] --- examples/lbash.lua | 9 ++++++--- lsyncd.lua | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/lbash.lua b/examples/lbash.lua index c967d75..e8da8d9 100644 --- a/examples/lbash.lua +++ b/examples/lbash.lua @@ -9,11 +9,14 @@ settings = { statusIntervall = 1, } +---- +-- for testing purposes. prefix can be used to slow commands down. +-- prefix = "sleep 5 && " +prefix = "" ---- -- for testing purposes. uses bash command to hold local dirs in sync. -- -prefix = "sleep 5 && " -slowbash = { +bash = { delay = 5, maxProcesses = 3, @@ -53,5 +56,5 @@ slowbash = { end, } -sync{default.rsync, source="src", target="dst/"} +sync{bash, source="src", target="dst/"} diff --git a/lsyncd.lua b/lsyncd.lua index 281a355..31f8c62 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -806,8 +806,8 @@ local Sync = (function() error("Cannot replace events with different paths") end else - log("Delay",nd.etype," turns a move into delete ", - od.etype," on ", path) + log("Delay",nd.etype," turns a Move into delete of ", + od.path) od.etype = "Delete" od.path2 = nil table.insert(self.delays, nd)