Skip to content

Commit

Permalink
Merge branch 'nnshah1-python-api-test-update' of https://github.com/t…
Browse files Browse the repository at this point in the history
…riton-inference-server/core into nnshah1-python-api-test-update
  • Loading branch information
nnshah1 committed Jan 18, 2024
2 parents 0721b83 + 0b989da commit c0d9b87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/model_repository_manager/model_repository_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,11 @@ ModelRepositoryManager::InitializeModelInfo(
// When override happens, set 'mtime_nsec_' to minimum value so that
// the next load without override will trigger re-load to undo
// the override while the local files may still be unchanged.
linfo->mtime_nsec_ = std::make_pair(0, 0);
auto time_since_epoch =
std::chrono::system_clock::now().time_since_epoch();
linfo->mtime_nsec_.first =
std::chrono::duration_cast<std::chrono::nanoseconds>(time_since_epoch)
.count();
unmodified = false;

const std::string& override_config = override_parameter->ValueString();
Expand Down

0 comments on commit c0d9b87

Please sign in to comment.