diff options
Diffstat (limited to 'hst')
| -rw-r--r-- | hst/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hst/config.go b/hst/config.go index 793cd786..da68ac26 100644 --- a/hst/config.go +++ b/hst/config.go @@ -6,7 +6,7 @@ import ( "strings" "hakurei.app/container/check" - "hakurei.app/container/std" + "hakurei.app/ext" ) // Config configures an application container. @@ -107,12 +107,12 @@ type Config struct { // Scheduling policy to set for the container. // // The zero value retains the current scheduling policy. - SchedPolicy std.SchedPolicy `json:"sched_policy,omitempty"` + SchedPolicy ext.SchedPolicy `json:"sched_policy,omitempty"` // Scheduling priority to set for the container. // // The zero value implies the minimum priority of the current SchedPolicy. // Has no effect if SchedPolicy is zero. - SchedPriority std.Int `json:"sched_priority,omitempty"` + SchedPriority ext.Int `json:"sched_priority,omitempty"` // High level configuration applied to the underlying [container]. Container *ContainerConfig `json:"container"` @@ -153,7 +153,7 @@ func (config *Config) Validate() error { Msg: "identity " + strconv.Itoa(config.Identity) + " out of range"} } - if config.SchedPolicy < 0 || config.SchedPolicy > std.SCHED_LAST { + if config.SchedPolicy < 0 || config.SchedPolicy > ext.SCHED_LAST { return &AppError{Step: "validate configuration", Err: ErrSchedPolicyBounds, Msg: "scheduling policy " + strconv.Itoa(int(config.SchedPolicy)) + |
