Skip to content

Commit bc0f601

Browse files
committed
ProcessMetric: Fix deserialization error for CreationTime
1 parent 95fd7aa commit bc0f601

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ElectronNET.API/API/Entities/ProcessMetric.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace ElectronNET.API.Entities
22
{
33
/// <summary>
4-
///
4+
/// Process metrics information.
55
/// </summary>
66
public class ProcessMetric
77
{
@@ -21,11 +21,9 @@ public class ProcessMetric
2121
public CPUUsage Cpu { get; set; }
2222

2323
/// <summary>
24-
/// Creation time for this process. The time is represented as number of milliseconds since epoch.
25-
/// Since the <see cref="PId"/> can be reused after a process dies, it is useful to use both the <see cref="PId"/>
26-
/// and the <see cref="CreationTime"/> to uniquely identify a process.
24+
/// Creation time for this process in milliseconds since Unix epoch. Can exceed Int32 range and may contain fractional milliseconds.
2725
/// </summary>
28-
public int CreationTime { get; set; }
26+
public double CreationTime { get; set; }
2927

3028
/// <summary>
3129
/// Memory information for the process.

0 commit comments

Comments
 (0)