add some useful comments to some variables

This commit is contained in:
TJ Horner 2019-02-28 12:13:41 -08:00
parent bc7c6c99d7
commit c420e1908c
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ func BeginDownload(posts *[]Post, saveDirectory *string, maxConcurrents *int) {
total := len(*posts)
// Distribute the posts based on the number of workers
ppw := len(*posts) / *maxConcurrents
mod := len(*posts) % *maxConcurrents
ppw := len(*posts) / *maxConcurrents // ppw: posts per worker
mod := len(*posts) % *maxConcurrents // mod: remainder of posts
for i := 0; i < *maxConcurrents; i++ {
postsLower := i * ppw