Small buglet in Juce time's code


#1

…/…/src/native/linux/juce_linux_SystemStats.cpp:184
reads:

184         t.tv_sec = millisSinceEpoch % 1000000;
185         t.tv_usec = millisSinceEpoch - t.tv_sec;
187         return settimeofday (&t, NULL) ? false : true;

I think it should read:

184         t.tv_sec = millisSinceEpoch / 1000;
185         t.tv_usec = (millisSinceEpoch - t.tv_sec * 1000) * 1000;
187         return settimeofday (&t, NULL) ? false : true;

Cheers!


#2

Ah, nice catch, thanks very much!