Skip to content

Commit

Permalink
Simplify the return from GetWallclock. LSL_Floats are internally doub…
Browse files Browse the repository at this point in the history
…les so no need to cast to float.
  • Loading branch information
mdickson committed Aug 10, 2023
1 parent d83e5a4 commit 81ecbcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,7 @@ public LSL_Float llGetWallclock()
{
var tzinfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
var dateTime = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, tzinfo).DateTime;
return (float)Math.Truncate(dateTime.TimeOfDay.TotalSeconds);
return Math.Truncate(dateTime.TimeOfDay.TotalSeconds);
}

public LSL_Float llGetTime()
Expand Down

0 comments on commit 81ecbcb

Please sign in to comment.