Skip to content

Commit a3aa269

Browse files
committed
Update stat objects to support long instead of int
Fixes #114
1 parent 8f11569 commit a3aa269

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

obs-websocket-dotnet/Types/OBSStats.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ public class ObsStats
1717
/// Number of frames rendered
1818
/// </summary>
1919
[JsonProperty(PropertyName = "renderTotalFrames")]
20-
public int RenderTotalFrames { set; get; }
20+
public long RenderTotalFrames { set; get; }
2121

2222
/// <summary>
2323
/// Number of frames missed due to rendering lag
2424
/// </summary>
2525
[JsonProperty(PropertyName = "renderSkippedFrames")]
26-
public int RenderMissedFrames { set; get; }
26+
public long RenderMissedFrames { set; get; }
2727

2828
/// <summary>
2929
/// Number of frames outputted
3030
/// </summary>
3131
[JsonProperty(PropertyName = "outputTotalFrames")]
32-
public int OutputTotalFrames { set; get; }
32+
public long OutputTotalFrames { set; get; }
3333

3434
/// <summary>
3535
/// Number of frames skipped due to encoding lag
3636
/// </summary>
3737
[JsonProperty(PropertyName = "outputSkippedFrames")]
38-
public int OutputSkippedFrames { set; get; }
38+
public long OutputSkippedFrames { set; get; }
3939

4040
/// <summary>
4141
/// Average frame render time (in milliseconds)
@@ -65,12 +65,12 @@ public class ObsStats
6565
/// Total number of messages received by obs-websocket from the client
6666
/// </summary>
6767
[JsonProperty(PropertyName = "webSocketSessionIncomingMessages")]
68-
public int SessionIncomingMessages { get; set; }
68+
public long SessionIncomingMessages { get; set; }
6969

7070
/// <summary>
7171
/// Total number of messages sent by obs-websocket to the client
7272
/// </summary>
7373
[JsonProperty(PropertyName = "webSocketSessionOutgoingMessages")]
74-
public int SessionOutgoingMessages { get; set; }
74+
public long SessionOutgoingMessages { get; set; }
7575
}
7676
}

obs-websocket-dotnet/Types/OutputStatus.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class OutputStatus
3030
/// Current duration in milliseconds for the output
3131
/// </summary>
3232
[JsonProperty(PropertyName = "outputDuration")]
33-
public int Duration { get; set; }
33+
public long Duration { get; set; }
3434

3535
/// <summary>
3636
/// Congestion of the output
@@ -42,19 +42,19 @@ public class OutputStatus
4242
/// Nubmer of bytes sent by the output
4343
/// </summary>
4444
[JsonProperty(PropertyName = "outputBytes")]
45-
public int BytesSent { get; set; }
45+
public long BytesSent { get; set; }
4646

4747
/// <summary>
4848
/// Number of frames skipped by the output's process
4949
/// </summary>
5050
[JsonProperty(PropertyName = "outputSkippedFrames")]
51-
public int SkippedFrames { get; set; }
51+
public long SkippedFrames { get; set; }
5252

5353
/// <summary>
5454
/// Total number of frames delivered by the output's process
5555
/// </summary>
5656
[JsonProperty(PropertyName = "outputTotalFrames")]
57-
public int TotalFrames { get; set; }
57+
public long TotalFrames { get; set; }
5858

5959
/// <summary>
6060
/// Builds the object from the JSON response body

obs-websocket-dotnet/Types/RecordingStatus.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public class RecordingStatus
3030
/// Current duration in milliseconds for the output
3131
/// </summary>
3232
[JsonProperty(PropertyName = "outputDuration")]
33-
public int RecordingDuration { set; get; }
33+
public long RecordingDuration { set; get; }
3434

3535
/// <summary>
3636
/// Number of bytes sent by the output
3737
/// </summary>
3838
[JsonProperty(PropertyName = "outputBytes")]
39-
public int RecordingBytes { set; get; }
39+
public long RecordingBytes { set; get; }
4040

4141
/// <summary>
4242
/// Builds the object from the JSON response body

0 commit comments

Comments
 (0)