From 6e66fb3d19b37c073faf6148f0a5a155128a93a1 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Tue, 7 Jun 2022 01:15:29 -0400 Subject: [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. --- extendedstats/other.go | 2 -- networkQuality.go | 2 +- 2 files changed, 1 insertion(+), 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 { -- cgit v1.2.3