1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Minor comment adjustment.

This commit is contained in:
Sergey Prigogin 2012-05-11 17:07:36 -07:00
parent 71420e489e
commit 758ce684d3

View file

@ -260,8 +260,8 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
*/
private boolean fileIsNotOlderThanTimestamp(String filename, long timestamp) {
// We are subtracting 1 second from the timestamp to account for limited precision
// of File.lastModified() method and possible asynchrony between clocks on multi-CPU
// systems. This may produce false positives, but they are pretty harmless.
// of File.lastModified() method and possible skew between clocks on a multi-CPU
// system. This may produce false positives, but they are pretty harmless.
return new File(filename).lastModified() >= timestamp - 1000;
}