diff options
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index a18806141..5563a7d8b 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -272,7 +272,7 @@ inspect_linger(int level, int optname, VALUE data, VALUE ret) if (RSTRING_LEN(data) == sizeof(struct linger)) { struct linger s; memcpy((char*)&s, RSTRING_PTR(data), sizeof(s)); - rb_str_catf(ret, " onoff:%d linger:%d", s.l_onoff, s.l_linger); + rb_str_catf(ret, " %s %dsec", s.l_onoff ? "on" : "off", s.l_linger); return 1; } else { |