From a1d6c3d4af52833240332e08e7333e89a205f0db Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 25 Feb 2022 18:10:16 -0800 Subject: [PATCH] remove trimming of top level path --- cmd/admin-speedtestdrive.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/admin-speedtestdrive.go b/cmd/admin-speedtestdrive.go index b16fe8c8..5137eae3 100644 --- a/cmd/admin-speedtestdrive.go +++ b/cmd/admin-speedtestdrive.go @@ -20,7 +20,6 @@ package cmd import ( "context" "fmt" - "path/filepath" humanize "github.com/dustin/go-humanize" "github.com/fatih/color" @@ -104,7 +103,7 @@ func mainAdminSpeedtestDrive(ctx *cli.Context, aliasedURL string) error { cellText[i+1] = []string{ fmt.Sprintf("%.64s%s", result.Endpoint, trailerIfGreaterThan(result.Endpoint, 64)), - fmt.Sprintf("%.64s%s", filepath.Dir(item.Path), + fmt.Sprintf("%.64s%s", item.Path, trailerIfGreaterThan(result.Endpoint, 64)), humanize.IBytes(item.ReadThroughput) + "/s", humanize.IBytes(item.WriteThroughput) + "/s",