Skip to content

Commit b3ddc8e

Browse files
committed
Merge branch 'kaldughayem/bwtestclient-find-max-bandwidth' of github.com:kaldughayem/scion-apps into kaldughayem/bwtestclient-find-max-bandwidth
2 parents 1593175 + dba3720 commit b3ddc8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

camerapp/imagefetcher/imagefetcher.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func main() {
165165
sciondPath string
166166
sciondFromIA bool
167167
dispatcherPath string
168+
outputFilePath string
168169

169170
err error
170171
local *snet.Addr
@@ -179,6 +180,7 @@ func main() {
179180
flag.BoolVar(&sciondFromIA, "sciondFromIA", false, "SCIOND socket path from IA address:ISD-AS")
180181
flag.StringVar(&dispatcherPath, "dispatcher", "/run/shm/dispatcher/default.sock",
181182
"Path to dispatcher socket")
183+
flag.StringVar(&outputFilePath, "output", "", "Path to the output file")
182184
flag.Parse()
183185

184186
// Create SCION UDP socket
@@ -280,7 +282,10 @@ func main() {
280282
}
281283

282284
// Write file to disk
283-
err = ioutil.WriteFile(fileName, fileBuffer, 0600)
285+
if outputFilePath == "" {
286+
outputFilePath = fileName
287+
}
288+
err = ioutil.WriteFile(outputFilePath, fileBuffer, 0600)
284289
check(err)
285290
fmt.Println("\nDone, exiting. Total duration", time.Now().Sub(startTime))
286291
}

0 commit comments

Comments
 (0)