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

ruby-changes:8403

From: nari <ko1@a...>
Date: Sat, 25 Oct 2008 20:10:57 +0900 (JST)
Subject: [ruby-changes:8403] Ruby:r19934 (trunk): * gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.

nari	2008-10-25 20:10:39 +0900 (Sat, 25 Oct 2008)

  New Revision: 19934

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

  Log:
    * gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19933)
+++ ChangeLog	(revision 19934)
@@ -1,3 +1,7 @@
+Sat Oct 25 20:05:22 2008  Narihiro Nakamura  <authorNari@g...>
+
+	* gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
+
 Sat Oct 25 11:12:40 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* ruby.c (usage): updated the description of -E option.
Index: gc.c
===================================================================
--- gc.c	(revision 19933)
+++ gc.c	(revision 19934)
@@ -2724,7 +2724,7 @@
 			NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SIZE")))),
 			NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")))),
 			NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")))),
-			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*100);
+			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*1000);
 	}
 #if GC_PROFILE_MORE_DETAIL
 	rb_str_cat2(result, "\n\n");
@@ -2737,8 +2737,8 @@
 			NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_LIMIT")))),
 			NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SLOTS")))),
 			rb_hash_aref(r, ID2SYM(rb_intern("HAVE_FINALIZE")))? "true" : "false",
-			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_MARK_TIME"))))*100,
-			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*100);
+			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_MARK_TIME"))))*1000,
+			NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*1000);
 	}
 #endif
     }

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

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