mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 04:17:51 +00:00
added docs to code
This commit is contained in:
parent
8ee3b7eddc
commit
784acc982f
1 changed files with 4 additions and 4 deletions
|
|
@ -87,14 +87,14 @@ func getLightestProcess(m map[string]int) (Pair, error) {
|
|||
if l == 0 {
|
||||
return Pair{}, errors.New("No Processes")
|
||||
}
|
||||
p := make(PairList, l)
|
||||
processlist := make(PairList, l)
|
||||
i := 0
|
||||
for k, v := range m {
|
||||
p[i] = Pair{k, v}
|
||||
processlist[i] = Pair{k, v}
|
||||
}
|
||||
sort.Sort(p)
|
||||
sort.Sort(processlist)
|
||||
|
||||
return p[0], nil
|
||||
return processlist[0], nil
|
||||
}
|
||||
|
||||
func (self *TopologyMapper) MakeFragments(db string, slice_int int) error {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue