mirror of
https://github.com/fumiama/dupimage.git
synced 2026-06-05 02:00:32 +08:00
优化流程
This commit is contained in:
16
main.go
16
main.go
@@ -190,15 +190,17 @@ func main() {
|
|||||||
fmt.Println("sameset:", sameset)
|
fmt.Println("sameset:", sameset)
|
||||||
panic("index " + strconv.Itoa(j) + ", file " + chklst[j].name + " has been marked as set " + strconv.FormatUint(uint64(x), 10) + " but cannot be found in sameset")
|
panic("index " + strconv.Itoa(j) + ", file " + chklst[j].name + " has been marked as set " + strconv.FormatUint(uint64(x), 10) + " but cannot be found in sameset")
|
||||||
}
|
}
|
||||||
} else if isfirst { // 自立新组
|
} else {
|
||||||
sameset = append(sameset, []uint{uint(i)})
|
if isfirst { // 自立新组
|
||||||
duplis[uint(i)] = uint(i)
|
sameset = append(sameset, []uint{uint(i)})
|
||||||
isfirst = false
|
duplis[uint(i)] = uint(i)
|
||||||
if isdebu {
|
isfirst = false
|
||||||
fmt.Println("new set:", i)
|
if isdebu {
|
||||||
|
fmt.Println("new set:", i)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
duplis[uint(j)] = uint(i)
|
||||||
}
|
}
|
||||||
duplis[uint(j)] = uint(i)
|
|
||||||
if isdebu {
|
if isdebu {
|
||||||
fmt.Print("\n")
|
fmt.Print("\n")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user