IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5909


Ignore:
Timestamp:
Jan 5, 2006, 3:01:39 PM (21 years ago)
Author:
magnier
Message:

updates to log

Location:
branches/eam_rel9_b1/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b1/psLib/src/sys/psLogMsg.h

    r5072 r5909  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-20 02:43:53 $
     13 *  @version $Revision: 1.34.16.1 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-01-06 01:01:39 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    115115    PS_LOG_ERROR,                      ///< log message is an error, but don't abort
    116116    PS_LOG_WARN,                       ///< log message is a warning
    117     PS_LOG_INFO                        ///< log message is informational only
     117    PS_LOG_INFO,                       ///< log message is informational only
     118    PS_LOG_NOTE,                       ///< log message is informational only
     119    PS_LOG_DETAIL                      ///< log message is informational only
    118120};
    119121
  • branches/eam_rel9_b1/psLib/src/types/psMetadata.c

    r5539 r5909  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.92 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-11-18 01:51:03 $
     14 *  @version $Revision: 1.92.6.1 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-01-06 01:01:39 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    12371237        // Only doing a representative set of types
    12381238    case PS_DATA_S32:
    1239         return arg->data.S32 >= 0 ? (int)log10f((float)arg->data.S32) + 1 :
    1240                (int)log10f(-(float)arg->data.S32) + 2;
     1239        // XXX : this had a seriously bad result for value == 0!
     1240        if (arg->data.S32 == 0)
     1241            return 1;
     1242        if (arg->data.S32 < 0)
     1243            return (int)log10f(-(float)arg->data.S32) + 2;
     1244        return (int)log10f((float)arg->data.S32) + 1;
    12411245        // XXX: Other numerical types
    12421246    case PS_DATA_F32:
Note: See TracChangeset for help on using the changeset viewer.