Skip to content

Commit

Permalink
native python: stop setting PAR_LAUNCH_TIMESTAMP
Browse files Browse the repository at this point in the history
Summary:
This messes with cli telemetry

Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: itamaro

Differential Revision: D49275018

fbshipit-source-id: c6f2672f3f532fe865a8afb61e6f84af7a798522
  • Loading branch information
zsol authored and facebook-github-bot committed Sep 15, 2023
1 parent 6f5559c commit 30832b2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions prelude/python/tools/embedded_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ int main(int argc, char* argv[]) {
PyStatus status;
PyConfig config;

struct timeval tv;
gettimeofday(&tv, nullptr);
double current_time = (double)tv.tv_usec / 1000000.0 + tv.tv_sec;
setenv("PAR_LAUNCH_TIMESTAMP", std::to_string(current_time).c_str(), true);

PyConfig_InitPythonConfig(&config);

status = PyConfig_SetBytesString(&config, &config.program_name, argv[0]);
Expand Down

0 comments on commit 30832b2

Please sign in to comment.