From 30832b2e5a68dc0b45c6d8654eaf257f9f80d252 Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Thu, 14 Sep 2023 17:27:04 -0700 Subject: [PATCH] native python: stop setting PAR_LAUNCH_TIMESTAMP 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 --- prelude/python/tools/embedded_main.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/prelude/python/tools/embedded_main.cpp b/prelude/python/tools/embedded_main.cpp index e3209e9d..a8fa9836 100644 --- a/prelude/python/tools/embedded_main.cpp +++ b/prelude/python/tools/embedded_main.cpp @@ -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]);