Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
woanware committed Nov 2, 2016
1 parent 795bf75 commit f8e4c12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/src/woanware/lookuper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
// ##### Constants ############################################################

const APP_NAME string = "lookuper"
const APP_VERSION string = "0.0.5"
const APP_VERSION string = "0.0.6"
const DB_FILE_NAME string = "./lookuper.db"
const CONFIG_FILE_NAME string = "./lookuper.config"

Expand Down
6 changes: 4 additions & 2 deletions source/src/woanware/lookuper/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ func (w *Worker) process(apiKey string) int8 {
}

if w.numberComplete % 5 == 0 {
percent = float64(w.numberComplete) * float64(100) / float64(w.numberTotal)
log.Printf("Percent Complete: %d", int(percent))
percent = float64(w.numberComplete) * float64(100) / float64(w.numberTotal)
if percent != 0 {
log.Printf("Percent Complete: %d", int(percent))
}
}

responseCode = w.processBatch(apiKey, batchData)
Expand Down

0 comments on commit f8e4c12

Please sign in to comment.