mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
Rename MemorySpecification to ByteSpecification
This commit is contained in:
@@ -24,7 +24,7 @@ from traitlets import (
|
||||
validate,
|
||||
)
|
||||
|
||||
from .traitlets import Command, MemorySpecification
|
||||
from .traitlets import Command, ByteSpecification
|
||||
from .utils import random_port
|
||||
|
||||
class Spawner(LoggingConfigurable):
|
||||
@@ -183,7 +183,7 @@ class Spawner(LoggingConfigurable):
|
||||
"""
|
||||
).tag(config=True)
|
||||
|
||||
mem_limit = MemorySpecification(
|
||||
mem_limit = ByteSpecification(
|
||||
None,
|
||||
help="""
|
||||
Maximum number of bytes a single-user notebook server is allowed to use.
|
||||
@@ -220,7 +220,7 @@ class Spawner(LoggingConfigurable):
|
||||
"""
|
||||
).tag(config=True)
|
||||
|
||||
mem_guarantee = MemorySpecification(
|
||||
mem_guarantee = ByteSpecification(
|
||||
None,
|
||||
help="""
|
||||
Minimum number of bytes a single-user notebook server is guaranteed to have available.
|
||||
|
Reference in New Issue
Block a user