Skip to content

Commit

Permalink
chore(userspace/libsinsp): make thiszone thread local.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jun 20, 2024
1 parent 51dd85e commit a6c61e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ void sinsp_utils::ts_to_string(uint64_t ts, std::string* res, bool date, bool ns
time_t Time;
uint64_t sec = ts / ONE_SECOND_IN_NS;
uint64_t nsec = ts % ONE_SECOND_IN_NS;
static int32_t thiszone = -1;
thread_local int32_t thiszone = -1;

if (thiszone == -1)
{
Expand Down

0 comments on commit a6c61e0

Please sign in to comment.