-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PosixTimeval.ToString() when microseconds is < 100000
Bug would cause PosixTimeval.ToString() with a seconds of 123 and a microseconds of 1234 to return "123.1234" but this should be returning "123.001234" (note the leading zeros). Change from StringBuilder.Append() to StringBuilder.AppendFormat() and add a format that will add leading '0's until there are 6 digits of microseconds. Bug reported by github user bucweat.
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters