summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-06-07 01:15:29 -0400
committerWill Hawkins <[email protected]>2022-06-07 01:15:29 -0400
commit6e66fb3d19b37c073faf6148f0a5a155128a93a1 (patch)
tree4d1b32f9bff169040d11efaff1d449380bfd5f73
parentd06438ff7414abfcc5a2a1bd13a935ee594f0842 (diff)
[Bugfix] Conditional build support broken for Windows
Now that we are conditionally building parts of the source code so that we can use *nix's platform support for TCPInfo, it is hard to make sure that I have all platforms working right at the same time. @Schickendantzj helped debug this error this morning.
-rw-r--r--extendedstats/other.go2
-rw-r--r--networkQuality.go2
2 files changed, 1 insertions, 3 deletions
diff --git a/extendedstats/other.go b/extendedstats/other.go
index c0f89ed..d720384 100644
--- a/extendedstats/other.go
+++ b/extendedstats/other.go
@@ -5,8 +5,6 @@ package extendedstats
import (
"net"
-
- "golang.org/x/sys/unix"
)
type ExtendedStats struct{}
diff --git a/networkQuality.go b/networkQuality.go
index 217ee6a..e5e3631 100644
--- a/networkQuality.go
+++ b/networkQuality.go
@@ -105,7 +105,7 @@ func main() {
if *calculateExtendedStats && !extendedstats.ExtendedStatsAvailable() {
*calculateExtendedStats = false
- fmt.Printf("Warning: Calculation of extended statics was requested but they are not supported on this platform.\n")
+ fmt.Printf("Warning: Calculation of extended statistics was requested but they are not supported on this platform.\n")
}
if err := config.Get(configHostPort, *configPath); err != nil {