You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
When our unit tests are run using a linux distro, the AuthenticationResult->AuthenticationResultMetadata->DurationTotalInMs is returning a incorrect time. This is due to the Stopwatch.Frequency being 10000000 on windows and 1000000000 on linux, this is not taken into account when performing the calculation.
SingleCopy
changed the title
[Bug] DurationTotalInMs incorrect when running in linux
[Bug] MeasureDurationResult incorrect when running in linux
May 23, 2024
Library version used
4.60.3
.NET version
C# .net 8.0
Scenario
ManagedIdentityClient - managed identity
Is this a new or an existing app?
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
When our unit tests are run using a linux distro, the AuthenticationResult->AuthenticationResultMetadata->DurationTotalInMs is returning a incorrect time. This is due to the Stopwatch.Frequency being 10000000 on windows and 1000000000 on linux, this is not taken into account when performing the calculation.
Relevant code snippets
Expected behavior
Regardless of O/S, the DurationTotalInMs should be the same, however, on linux, the DurationTotalInMs is incorrect
Windows:
ElapsedTicks: 8423086
DurationTotalInMs: 842
Linux
ElapsedTicks: 8423086
DurationTotalInMs: 84230
Identity provider
Other
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: