added first draft
This commit is contained in:
parent
bdb0fd33cc
commit
fbcfafdac3
1 changed files with 5 additions and 3 deletions
|
@ -16,6 +16,8 @@ import statistics # for median and stdev
|
||||||
import sys # for redirecting print to stderr
|
import sys # for redirecting print to stderr
|
||||||
|
|
||||||
import requests # for the central HTTP HEAD request
|
import requests # for the central HTTP HEAD request
|
||||||
|
from typing import (List)
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
__author__ = "Tobias Schmidl"
|
__author__ = "Tobias Schmidl"
|
||||||
__copyright__ = "Copyright 2018, Tobias Schmidl"
|
__copyright__ = "Copyright 2018, Tobias Schmidl"
|
||||||
|
@ -23,10 +25,10 @@ __license__ = "MIT"
|
||||||
__version__ = "0.0.1"
|
__version__ = "0.0.1"
|
||||||
__maintainer__ = "Tobias Schmidl"
|
__maintainer__ = "Tobias Schmidl"
|
||||||
|
|
||||||
MAX_PING = datetime.timedelta(milliseconds=1000) # in seconds
|
MAX_PING: int = datetime.timedelta(milliseconds=1000) # in seconds
|
||||||
TARGETS = ["https://www.google.de", "https://www.bing.com", "https://www.wikipedia.org"]
|
TARGETS: List[str] = ["https://www.google.de", "https://www.bing.com", "https://www.wikipedia.org"]
|
||||||
|
|
||||||
MAX_PING_IN_MS = MAX_PING.total_seconds() * 1000
|
MAX_PING_IN_MS: int = MAX_PING.total_seconds() * 1000
|
||||||
|
|
||||||
|
|
||||||
def in_bucket(element, bucket):
|
def in_bucket(element, bucket):
|
||||||
|
|
Loading…
Reference in a new issue