mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 08:26:47 +00:00
Change plain number response to Decimal String.
Signed-off-by: Shikachuu <zcmate@gmail.com>
This commit is contained in:
parent
d5fcc7b2ab
commit
c5f167df21
@ -38,7 +38,7 @@ func MakeReadHandler(client *containerd.Client) func(w http.ResponseWriter, r *h
|
|||||||
for _, fn := range fns {
|
for _, fn := range fns {
|
||||||
annotations := &fn.annotations
|
annotations := &fn.annotations
|
||||||
labels := &fn.labels
|
labels := &fn.labels
|
||||||
memory := resource.NewQuantity(fn.memoryLimit, resource.BinarySI)
|
memory := resource.NewQuantity(fn.memoryLimit, resource.DecimalSI)
|
||||||
res = append(res, types.FunctionStatus{
|
res = append(res, types.FunctionStatus{
|
||||||
Name: fn.name,
|
Name: fn.name,
|
||||||
Image: fn.image,
|
Image: fn.image,
|
||||||
@ -49,7 +49,7 @@ func MakeReadHandler(client *containerd.Client) func(w http.ResponseWriter, r *h
|
|||||||
Secrets: fn.secrets,
|
Secrets: fn.secrets,
|
||||||
EnvVars: fn.envVars,
|
EnvVars: fn.envVars,
|
||||||
EnvProcess: fn.envProcess,
|
EnvProcess: fn.envProcess,
|
||||||
Limits: &types.FunctionResources{Memory: memory.String()},
|
Limits: &types.FunctionResources{Memory: memory.ToDec().String()},
|
||||||
CreatedAt: fn.createdAt,
|
CreatedAt: fn.createdAt,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user