Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions gitbrute.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"runtime"
"strconv"
"strings"
"time"
)

var (
Expand All @@ -38,11 +37,6 @@ var (
cpu = flag.Int("cpus", runtime.NumCPU(), "Number of CPUs to use. Defaults to number of processors.")
)

var (
start = time.Now()
startUnix = start.Unix()
)

func main() {
flag.Parse()
runtime.GOMAXPROCS(*cpu)
Expand Down Expand Up @@ -112,8 +106,8 @@ func bruteForce(obj []byte, winner chan<- solution, possibilities <-chan try, do
case <-done:
return
default:
ad := date{startUnix - int64(t.authorBehind), authorDate.tz}
cd := date{startUnix - int64(t.commitBehind), commitDate.tz}
ad := date{authorDate.n - int64(t.authorBehind), authorDate.tz}
cd := date{commitDate.n - int64(t.commitBehind), commitDate.tz}
strconv.AppendInt(blob[:adatei], ad.n, 10)
strconv.AppendInt(blob[:cdatei], cd.n, 10)
s1.Reset()
Expand Down