added first draft
This commit is contained in:
parent
1278ad984c
commit
9a096252c4
1 changed files with 5 additions and 3 deletions
|
@ -15,6 +15,8 @@ import statistics # for median and stdev
|
|||
import sys # for redirecting print to stderr
|
||||
|
||||
import requests # for the central HTTP HEAD request
|
||||
from typing import (List)
|
||||
from __future__ import annotations
|
||||
|
||||
__author__ = "Tobias Schmidl"
|
||||
__copyright__ = "Copyright 2018, Tobias Schmidl"
|
||||
|
@ -22,10 +24,10 @@ __license__ = "MIT"
|
|||
__version__ = "0.0.1"
|
||||
__maintainer__ = "Tobias Schmidl"
|
||||
|
||||
MAX_PING = datetime.timedelta(milliseconds=1000) # in seconds
|
||||
TARGETS = ["https://www.google.de", "https://www.bing.com", "https://www.wikipedia.org"]
|
||||
MAX_PING: int = datetime.timedelta(milliseconds=1000) # in seconds
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue