[前][次][番号順一覧][スレッド一覧]

ruby-changes:19524

From: nagachika <ko1@a...>
Date: Sat, 14 May 2011 17:47:09 +0900 (JST)
Subject: [ruby-changes:19524] nagachika:r31564 (trunk): * process.c (rb_proc_times): improve documentation.

nagachika	2011-05-14 17:47:02 +0900 (Sat, 14 May 2011)

  New Revision: 31564

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31564

  Log:
    * process.c (rb_proc_times): improve documentation.
       [ruby-core:35785] fixes #4581, reported by Andrew Grimm.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31563)
+++ ChangeLog	(revision 31564)
@@ -1,3 +1,8 @@
+Sat May 14 17:42:21 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
+
+	* process.c (rb_proc_times): improve documentation.
+	  [ruby-core:35785] fixes #4581, reported by Andrew Grimm.
+
 Sat May 14 12:12:54 2011  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* test/openssl/test_pkey_dsa.rb: Add basic tests and tests that 
Index: process.c
===================================================================
--- process.c	(revision 31563)
+++ process.c	(revision 31564)
@@ -5611,12 +5611,12 @@
  *  call-seq:
  *     Process.times   -> aStructTms
  *
- *  Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>
- *  on page 388) that contains user and system CPU times for this
- *  process.
+ *  Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>)
+ *  that contains user and system CPU times for this process,
+ *  and also for children processes.
  *
  *     t = Process.times
- *     [ t.utime, t.stime ]   #=> [0.0, 0.02]
+ *     [ t.utime, t.stime, t.cutime, t.cstime ]   #=> [0.0, 0.02, 0.00, 0.00]
  */
 
 VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]