aboutsummaryrefslogtreecommitdiff
path: root/steam/package.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-09 21:11:52 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-09 21:12:03 -0400
commit9d5d130038ed90564c3acfb2fd2ff64e3d7b0bd9 (patch)
treea95d63e240f0b63ffa4ff2ad3571fa45165b5708 /steam/package.go
parentc202f2eca32e1ab2e313417168351df1c58ee062 (diff)
downloadsteam-export-9d5d130038ed90564c3acfb2fd2ff64e3d7b0bd9.tar.gz
steam-export-9d5d130038ed90564c3acfb2fd2ff64e3d7b0bd9.tar.xz
Fix up cli. Continue fixing up the library and web app. Initial API spec
Diffstat (limited to 'steam/package.go')
-rw-r--r--steam/package.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/steam/package.go b/steam/package.go
index 5b0c618..db3d6cf 100644
--- a/steam/package.go
+++ b/steam/package.go
@@ -3,7 +3,6 @@ package steam
import (
"archive/tar"
"errors"
- "fmt"
"io"
"path/filepath"
"time"
@@ -56,7 +55,7 @@ func (l *Library) Package(game string, wr io.Writer) error {
rate := float64(total) / elapsedSeconds
- fmt.Println("rate in bytes/second: ", formatBytes(int64(rate)))
+ // fmt.Println("rate in bytes/second: ", formatBytes(int64(rate)))
estSize := j.GetSize()
@@ -66,12 +65,12 @@ func (l *Library) Package(game string, wr io.Writer) error {
}
remainingBytes := float64(*estSize - total)
- fmt.Println("remaining bytes: ", formatBytes(int64(remainingBytes)))
+ // fmt.Println("remaining bytes: ", formatBytes(int64(remainingBytes)))
seconds := (remainingBytes / rate)
duration := time.Duration(seconds * 1000 * 1000 * 1000)
- fmt.Println("Raw duration: ", duration)
+ // fmt.Println("Raw duration: ", duration)
j.setETA(duration)
}