Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Commit 8805b95

Browse files
committed
Filter out unexpected colons in tshark output
1 parent 4f14120 commit 8805b95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TzspPacketStreamExporter/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
[assembly: AssemblyCompany("prometheus-net")]
44
[assembly: AssemblyProduct("TZSP packet stream analysis exporter")]
5-
[assembly: AssemblyVersion("1.0.0")]
5+
[assembly: AssemblyVersion("1.0.1")]

TzspPacketStreamExporter/ExporterLogic.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ void ConsumeStandardOutput(Stream stdout)
6767
if (parts.Length != 2)
6868
throw new NotSupportedException("Output line did not have expected 2 components.");
6969

70-
packetBytesHex = parts[0];
70+
// On some systems there are colons. On others there are not!
71+
// Language/version differences? Whatever, get rid of them.
72+
packetBytesHex = parts[0].Replace(":", "");
7173
packetType = parts[1];
7274

7375
var packetBytes = Helpers.Convert.HexStringToByteArray(packetBytesHex);

0 commit comments

Comments
 (0)