Commit 516f1c77 authored by Guy Benoish's avatar Guy Benoish Committed by antirez
Browse files

Use memtoll() in 'CONFIG SET client-output-buffer-limit'

parent 8db67a55
...@@ -1042,8 +1042,8 @@ void configSetCommand(client *c) { ...@@ -1042,8 +1042,8 @@ void configSetCommand(client *c) {
int soft_seconds; int soft_seconds;
class = getClientTypeByName(v[j]); class = getClientTypeByName(v[j]);
hard = strtoll(v[j+1],NULL,10); hard = memtoll(v[j+1],NULL);
soft = strtoll(v[j+2],NULL,10); soft = memtoll(v[j+2],NULL);
soft_seconds = strtoll(v[j+3],NULL,10); soft_seconds = strtoll(v[j+3],NULL,10);
server.client_obuf_limits[class].hard_limit_bytes = hard; server.client_obuf_limits[class].hard_limit_bytes = hard;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment