mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-16 00:26:43 +00:00
update
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
"io"
|
||||
"net/http"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Configuration struct {
|
||||
@@ -195,6 +196,14 @@ type MsgOptimizerPredict struct {
|
||||
Post int `json:"post"`
|
||||
}
|
||||
|
||||
type PoolSeg struct {
|
||||
ID int
|
||||
Nodes map[string]*NodeStatus
|
||||
Lock sync.Mutex
|
||||
Next *PoolSeg
|
||||
IsVirtual bool
|
||||
}
|
||||
|
||||
func str2int(str string, defaultValue int) int {
|
||||
i, err := strconv.Atoi(str)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user