static void Main(string[] args)
        {
            PingPluginOptions Options = new PingPluginOptions();
            Options.label = "Ping";
            Options.units = "%,ms";
            Options.ProcessArgs(args);

            PingPlugin plugin = new PingPlugin(Options);
            MultiPingReply reply = plugin.Ping();
            plugin.AppendValue("Packet Loss", reply.PacketLoss);
            plugin.AppendValue("RTA", reply.RoundTripTimeAverage);
            plugin.Finish();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            PingPluginOptions Options = new PingPluginOptions();

            Options.label = "Ping";
            Options.units = "%,ms";
            Options.ProcessArgs(args);

            PingPlugin     plugin = new PingPlugin(Options);
            MultiPingReply reply  = plugin.Ping();

            plugin.AppendValue("Packet Loss", reply.PacketLoss);
            plugin.AppendValue("RTA", reply.RoundTripTimeAverage);
            plugin.Finish();
        }