Skip to content

Commit

Permalink
Fixes for minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeSLC committed Sep 3, 2024
1 parent db00e66 commit 7830512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void GetChannelsMcmTableRows(List<GQIRow> rows, LiteElementInfoEvent res
new GQICell { Value = "N/A" }, // Thumbnail
new GQICell { Value = severity }, // Severity
new GQICell { Value = Convert.ToString(activeEvents) }, // Active Events
new GQICell { Value = -1, DisplayValue = "N/A" }, // Bitrate
new GQICell { Value = -1d, DisplayValue = "N/A" }, // Bitrate
new GQICell { Value = type}, // Type
new GQICell { Value = "N/A" }, // CPU Usage
new GQICell { Value = "N/A" }, // Memory Allocated
Expand Down
17 changes: 2 additions & 15 deletions TAG-GQI-Retrieve Outputs_1/TAG-GQI-Retrieve Outputs_1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ private void GetOutputMcmTableRows(List<GQIRow> rows, LiteElementInfoEvent respo
for (int i = 0; i < encoderConfigTable.Length; i++)
{
var deviceEncoderConfigRow = encoderConfigTable[i];
var filteredDeviceRow = deviceRows.First(x => Convert.ToString(x[4]).Equals(Convert.ToString(deviceEncoderConfigRow[16])));

var filteredDeviceRow = deviceRows.FirstOrDefault(x => Convert.ToString(x[4]).Equals(Convert.ToString(deviceEncoderConfigRow[16])));
var deviceName = string.Empty;
deviceName = filteredDeviceRow == null ? "N/A" : Convert.ToString(filteredDeviceRow[0]);

Expand Down Expand Up @@ -333,20 +334,6 @@ private static void CreateDebugRow(List<GQIRow> rows, string message)
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null},
new GQICell { Value = null},
new GQICell { Value = null },
new GQICell { Value = null },
new GQICell { Value = null},
new GQICell { Value = null},
new GQICell { Value = null},
new GQICell { Value = null},
new GQICell { Value = null},
};

var row = new GQIRow(debugCells);
Expand Down

0 comments on commit 7830512

Please sign in to comment.