Cleanup
This commit is contained in:
parent
7ef4853c40
commit
db2d236d17
3
media.go
3
media.go
@ -5,7 +5,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -147,12 +146,10 @@ func (self *Volume) export(path string, config ExportConfig, allocator *TempDirA
|
|||||||
|
|
||||||
func (self *Volume) supercedes(other *Volume) bool {
|
func (self *Volume) supercedes(other *Volume) bool {
|
||||||
if len(self.Pages) > len(other.Pages) {
|
if len(self.Pages) > len(other.Pages) {
|
||||||
log.Printf("picking %s over %s because it has more pages", self.Node.Name, other.Node.Name)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.AveragePageSize() > other.AveragePageSize() {
|
if self.AveragePageSize() > other.AveragePageSize() {
|
||||||
log.Printf("picking %s over %s because it has larger pages", self.Node.Name, other.Node.Name)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user