Re: Different instances with markedly different times
Posted in 2010
On 01/05/2010 08:44, Clive Eisen wrote: > > On 30/04/2010 15:29, Fernando Nunes wrote: >> I have two useless ideas: >> >> 1- Overload the OS function that IDS uses (is it gettimeofday()?) and >> give it some "intelligence" > > That's the one. Use LD_PRELOAD to slug gettimeofday by the offset - > should only be a few lines of C > > > in fact here is an almost complete example http://uberhip.com/people/godber/interception/html/slide_5.html It actually turns xclock into a stopwatch but everything you need is there. I would implement it with an environment variable specifying the offset in seconds - if the ENV is not set then assume 0 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean.