]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Compensate for MS Windows two-second granularity of file modification
[wget] / src / http.c
index 3e62856d86540e3d99e04dfeba6def956e77f4d3..c82eb32b6afa88cfec6e6d151848d99eb9420b0b 100644 (file)
@@ -1520,6 +1520,11 @@ File `%s' already there, will not retrieve.\n"), *hstat.local_file);
        {
          use_ts = 1;
          tml = st.st_mtime;
+#ifdef WINDOWS
+         /* Modification time granularity is 2 seconds for Windows, so
+            increase local time by 1 second for later comparison. */
+         tml++;
+#endif
          local_size = st.st_size;
          got_head = 0;
        }