Skip to content

Commit 1a810be

Browse files
authored
Merge pull request #15 from RipcordSoftware/fix-integer-timestamp
Use Convert.ToDouble rather than a cast to get the Timestamp
2 parents 1532cfe + bd548b0 commit 1a810be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PowerSession.Main/Commands/RecordSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal IEnumerable<SessionLine> Lines()
4747
if (lineData.Count != 3) throw new InvalidDataException("Invalid record data");
4848
var rv = new SessionLine
4949
{
50-
Timestamp = (double) lineData[0],
50+
Timestamp = Convert.ToDouble(lineData[0]),
5151
Stdout = (string) lineData[1] == "o",
5252
Content = (string) lineData[2]
5353
};

0 commit comments

Comments
 (0)