Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/util MemorySentinel.java

Project highlights: Architectural Overview

joist
Discussion topic

Hide all messages in topic

All messages in topic

CVS update: joist/java/org/joist/util MemorySentinel.java

Author stack
Full name Michael Stack
Date 2000-11-14 14:22:47 PST
Message User: stack
  Date: 00/11/14 14:22:47

  Modified: java/org/joist/util MemorySentinel.java
  Log:
  Print out less. Removed count of bytes. Just print count of Megs
  
  Revision Changes Path
  1.3 +3 -5 joist/java/org/joist​/util/MemorySentinel​.java
  
  Index: MemorySentinel.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/MemorySen​tinel.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MemorySentinel.java 2000/11/12 20:16:21 1.2
  +++ MemorySentinel.java 2000/11/14 22:22:47 1.3
  @@ -59,7 +59,7 @@
    * if it's a daemon thread. If only JVM threads running in a JVM, it exits.
    *
    * @author <a href="mailto:stack@c​ollab.net">St.Ack​</a>
  - * @version $Id: MemorySentinel.java,v 1.2 2000/11/12 20:16:21 stack Exp $
  + * @version $Id: MemorySentinel.java,v 1.3 2000/11/14 22:22:47 stack Exp $
    * @see JoistProperties
    */
   public class MemorySentinel extends Thread
  @@ -67,7 +67,7 @@
       /** Class version string
        */
       public static final String versionID
  - = "$Id: MemorySentinel.java,v 1.2 2000/11/12 20:16:21 stack Exp $";
  + = "$Id: MemorySentinel.java,v 1.3 2000/11/14 22:22:47 stack Exp $";
               
       
       /** Default sleep period between logging.
  @@ -282,9 +282,7 @@
        */
       private String format( long inMemory, long inPreviousMemory )
       {
  - StringBuffer buffer = new StringBuffer( Long.toString( inMemory ) );
  - buffer.append( "B " );
  - buffer.append( strMegabytes( inMemory ) );
  + StringBuffer buffer = new StringBuffer( strMegabytes( inMemory ) );
           buffer.append( "M (" );
           buffer.append( strPercentageDelta( inMemory, inPreviousMemory ) );
           buffer.append( ")" );
Messages per page: