var ping = require("../index");

var hosts = ['192.168.1.1', 'google.com', 'yahoo.com'];

hosts.forEach(function (host) {
    ping.promise.probe(host)
        .then(function (res) {
            console.log(res);
        })
        .done();
});

hosts.forEach(function (host) {
    ping.promise.probe(host, {
        timeout: 10,
        extra: ["-i 2"]
    })
    .then(function (res) {
            console.log(res);
    })
    .done();
});

var ping = require("../index");

var hosts = ['192.168.1.1', 'google.com', 'yahoo.com'];

hosts.forEach(function (host) {
    ping.promise.probe(host)
        .then(function (res) {
            console.log(res);
        })
        .done();
});

hosts.forEach(function (host) {
    ping.promise.probe(host, {
        timeout: 10,
        extra: ["-i", "2"]
    })
    .then(function (res) {
            console.log(res);
    })
    .done();
});

Fix bug on window platform
Fix bug on window platform

--Overview
1. Window's ping command treat '-i 2' as an invalid option. Therefore,
we must split them up. IE using ['-i', '2'] instead of ['-i 2']
