[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#520510: scan output skips first files in directories



Hello,

In gmane.linux.debian.devel.ocaml, you wrote:
>
> also sprach Sylvain Le Gall <gildor@debian.org> [2009.03.20.1451 +0100]:
>> Can you be more precise about the real problem. I can't figure it.
>
> Well, if I run unison over a directory structure like
>
>   .
>   foo/
>   foo/one
>   foo/two
>   bar/
>   bar/one
>   bar/two
>
> then the scanning messages will only be:
>
>   scanning foo
>   scanning foo/two
>   scanning bar
>   scanning bar/two
>
> I find that inconsistent and confusing (and minor).
>

The code related to this issue:

    fileLength := !fileLength + smallFileLength;
    if !fileLength >= bigFileLength then begin
      fileLength := 0;
      let t = Unix.gettimeofday () in
      if t -. !t0 > 0.05 then begin
        Trace.statusDetail ("scanning " ^ Path.toString path);
        t0 := t
      end
    end

It means that updating is done every 50ms. I am not sure there is a
real inconsistency here... At least upstream author made it on purpose,
and I prefer to have unison computing checksum than trying to display
precisely its status.

Do you really want to keep this bug open. This is really minor and only
a matter of taste...

Regards,
Sylvain Le Gall




Reply to: