|
|
@@ -535,7 +535,7 @@ func refreshUserStaticTable(wikiCountMap map[string]int, tableName string, pageS |
|
|
|
//normalization |
|
|
|
for k, v := range userIndexMap { |
|
|
|
tmpResult := (v - minUserIndex) / (maxUserIndex - minUserIndex) |
|
|
|
if v == maxUserIndex && tmpResult != 0 { |
|
|
|
if tmpResult > 0.99 { |
|
|
|
tmpResult = 0.99 |
|
|
|
} |
|
|
|
updateUserIndex(tableName, statictisSess, k, tmpResult) |
|
|
|