diff options
author | Nico Weber <nicolasweber@gmx.de> | 2017-10-20 17:18:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 17:18:16 (GMT) |
commit | e234a7bdb6c42f4539c0ab09b624f191287c2c10 (patch) | |
tree | 2bfad4ed54dcb5c22672a62d74dad2db25ee32d0 /src/build_log.cc | |
parent | 0d9bf7866322c9abd4e7e537d64d979af56498d7 (diff) | |
parent | 0c42653da8ccaeb14b7c28ba9670eeac0460037e (diff) | |
download | Ninja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.zip Ninja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.tar.gz Ninja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.tar.bz2 |
Merge pull request #1219 from QuLogic/resolution
Use high-resolution timestamps
Diffstat (limited to 'src/build_log.cc')
-rw-r--r-- | src/build_log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index 333915a..648617c 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -290,7 +290,7 @@ bool BuildLog::Load(const string& path, string* err) { if (!end) continue; *end = 0; - restat_mtime = atol(start); + restat_mtime = strtoll(start, NULL, 10); start = end + 1; end = (char*)memchr(start, kFieldSeparator, line_end - start); @@ -353,7 +353,7 @@ BuildLog::LogEntry* BuildLog::LookupByOutput(const string& path) { } bool BuildLog::WriteEntry(FILE* f, const LogEntry& entry) { - return fprintf(f, "%d\t%d\t%d\t%s\t%" PRIx64 "\n", + return fprintf(f, "%d\t%d\t%" PRId64 "\t%s\t%" PRIx64 "\n", entry.start_time, entry.end_time, entry.mtime, entry.output.c_str(), entry.command_hash) > 0; } |