зеркало из https://github.com/github/ruby.git
socket/option.c: accurate condition
* ext/socket/option.c (inspect_tcpi_msec): more accurate condition for TCPI msec member inspection function. [ruby-core:74388] [Bug #12185] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d90af78f05
Коммит
551f6b3a18
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Mar 17 11:36:27 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/option.c (inspect_tcpi_msec): more accurate condition
|
||||||
|
for TCPI msec member inspection function.
|
||||||
|
[ruby-core:74388] [Bug #12185]
|
||||||
|
|
||||||
Thu Mar 17 08:13:43 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
Thu Mar 17 08:13:43 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
||||||
|
|
||||||
* test/-ext-/time/test_new.rb (test_timespec_new): Time#gmtoff values
|
* test/-ext-/time/test_new.rb (test_timespec_new): Time#gmtoff values
|
||||||
|
|
|
@ -930,7 +930,12 @@ inspect_tcpi_usec(VALUE ret, const char *prefix, uint32_t t)
|
||||||
rb_str_catf(ret, "%s%u.%06us", prefix, t / 1000000, t % 1000000);
|
rb_str_catf(ret, "%s%u.%06us", prefix, t / 1000000, t % 1000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__sun)
|
#if !defined __FreeBSD__ && ( \
|
||||||
|
defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_SENT || \
|
||||||
|
defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_RECV || \
|
||||||
|
defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_SENT || \
|
||||||
|
defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_RECV || \
|
||||||
|
0)
|
||||||
static void
|
static void
|
||||||
inspect_tcpi_msec(VALUE ret, const char *prefix, uint32_t t)
|
inspect_tcpi_msec(VALUE ret, const char *prefix, uint32_t t)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче