Changeset 5909
- Timestamp:
- Jan 5, 2006, 3:01:39 PM (21 years ago)
- Location:
- branches/eam_rel9_b1/psLib/src
- Files:
-
- 2 edited
-
sys/psLogMsg.h (modified) (2 diffs)
-
types/psMetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_b1/psLib/src/sys/psLogMsg.h
r5072 r5909 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-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 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 115 115 PS_LOG_ERROR, ///< log message is an error, but don't abort 116 116 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 118 120 }; 119 121 -
branches/eam_rel9_b1/psLib/src/types/psMetadata.c
r5539 r5909 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.92 $ $Name: not supported by cvs2svn $15 * @date $Date: 200 5-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 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1237 1237 // Only doing a representative set of types 1238 1238 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; 1241 1245 // XXX: Other numerical types 1242 1246 case PS_DATA_F32:
Note:
See TracChangeset
for help on using the changeset viewer.
