Skip to content
Snippets Groups Projects
Commit e82aa913 authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

fix to string for DevState

parent 9dd6df5d
No related branches found
No related tags found
No related merge requests found
......@@ -58,10 +58,6 @@
package fr.soleil.archiving.hdbtdb.api.tools;
import java.lang.reflect.Array;
import java.text.SimpleDateFormat;
import java.util.Date;
import fr.esrf.Tango.AttrDataFormat;
import fr.esrf.Tango.AttrWriteType;
import fr.esrf.Tango.DevState;
......@@ -69,10 +65,14 @@ import fr.esrf.TangoDs.TangoConst;
import fr.soleil.archiving.common.api.tools.ArchivingEvent;
import fr.soleil.archiving.common.api.tools.GlobalConst;
import java.lang.reflect.Array;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ScalarEvent extends ArchivingEvent<boolean[]> {
private static final String MIN_VALUE = "1e-100";
private static double minAbsoluteValue = Double.parseDouble(MIN_VALUE);
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
private static double minAbsoluteValue = Double.parseDouble(MIN_VALUE);
/**
* Creates a new instance of DhdbEvent
......@@ -139,7 +139,7 @@ public class ScalarEvent extends ArchivingEvent<boolean[]> {
case AttrWriteType._READ:
case AttrWriteType._WRITE:
if (value instanceof DevState) {
valueToString = toString(((DevState) value).value());
valueToString = value.toString();
} else {
valueToString = toString(value);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment