Skip to content

Commit

Permalink
Attempt to fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
cdemi committed Mar 15, 2021
1 parent 6889694 commit c3e323f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private static void Main(string[] args)
new PRTGResult()
{
channel = "Instantaneous Input kbps",
Float = 1,
unit = PRTGUnit.BytesBandwidth,
value = statsInfo.SingleOrDefault(i => i.Key.Equals("instantaneous_input_kbps")).Value
}
Expand All @@ -194,6 +195,7 @@ private static void Main(string[] args)
new PRTGResult()
{
channel = "Instantaneous Output kbps",
Float = 1,
unit = PRTGUnit.BytesBandwidth,
value = statsInfo.SingleOrDefault(i => i.Key.Equals("instantaneous_output_kbps")).Value
}
Expand All @@ -202,14 +204,16 @@ private static void Main(string[] args)
new PRTGResult
{
channel = "Total Net Input Bytes",
unit = PRTGUnit.BytesBandwidth,
Float = 1,
unit = PRTGUnit.BytesDisk,
value = statsInfo.SingleOrDefault(i => i.Key.Equals("total_net_input_bytes")).Value
}
},
{
new PRTGResult
{
channel = "Total Net Output Bytes",
Float = 1,
unit = PRTGUnit.BytesBandwidth,
value = statsInfo.SingleOrDefault(i => i.Key.Equals("total_net_output_bytes")).Value
}
Expand Down

0 comments on commit c3e323f

Please sign in to comment.