remove trimming of top level path

This commit is contained in:
Harshavardhana
2022-02-25 18:10:25 -08:00
parent 5488be0c8b
commit 92e68ac7a5
+1 -2
View File
@@ -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",