Re-organisation. Added file utility to calculate upload/download slot count by connection speed (we should probably add a config value in the file server to override this, but it's good for people who are lazy)
This commit is contained in:
13
files/files_test.go
Normal file
13
files/files_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package files
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCalculateConnectionStatistics(t *testing.T) {
|
||||
connStats := CalculateConnectionStatistics()
|
||||
fmt.Printf(" Download: %s bytes/s\n Upload: %s bytes/s\n Estimated Client Slots: %s\n Estimated Internal Slots: %s\n", strconv.FormatUint(connStats.downloadBytes, 10), strconv.FormatUint(connStats.uploadBytes, 10), strconv.Itoa(int(connStats.uploadSlots)), strconv.Itoa(int(connStats.downloadSlots)))
|
||||
|
||||
}
|
Reference in New Issue
Block a user