Skip to content

Commit 5280628

Browse files
committed
[serving] Fixes snake case pattern (deepjavalibrary#2123)
1 parent ef2a8c4 commit 5280628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wlm/src/main/java/ai/djl/serving/wlm/ModelInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public final class ModelInfo<I, O> extends WorkerPoolConfig<I, O> {
7171
private static final Logger MODEL_METRIC = LoggerFactory.getLogger("model_metric");
7272

7373
private static final Pattern PATTERN = Pattern.compile("MemAvailable:\\s+(\\d+) kB");
74-
private static final Pattern SNAKE_CASE = Pattern.compile("[A-Z_]+");
74+
private static final Pattern SNAKE_CASE = Pattern.compile("[A-Z_\\d]+");
7575

7676
private String engineName;
7777
private String loadOnDevices;

0 commit comments

Comments
 (0)