[chronojump] sqlite/trigger.cs comments ms -> us



commit 0f8f87503cc0de442473943114f725d012a17247
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Mar 19 12:59:55 2021 +0100

    sqlite/trigger.cs comments ms -> us

 src/sqlite/trigger.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/sqlite/trigger.cs b/src/sqlite/trigger.cs
index ebfc069d..18e9de8e 100644
--- a/src/sqlite/trigger.cs
+++ b/src/sqlite/trigger.cs
@@ -44,7 +44,7 @@ class SqliteTrigger : Sqlite
                        "uniqueID INTEGER PRIMARY KEY, " +
                        "mode TEXT, " +         //encoder; gauge
                        "modeID INT, " +        //on encoder: uniqueID
-                       "ms INT, " +
+                       "ms INT, " +            //note this are microseconds!!! should have been named us
                        "inOut INT, " +         //bool
                        "name TEXT, " +
                        "color TEXT, " +
@@ -70,7 +70,7 @@ class SqliteTrigger : Sqlite
                                        (Trigger.Modes) Enum.Parse(
                                                typeof(Trigger.Modes), reader[1].ToString()), //mode
                                        Convert.ToInt32(reader[2]),             //modeID
-                                       Convert.ToInt32(reader[3]),             //ms
+                                       Convert.ToInt32(reader[3]),             //microseconds
                                        Util.IntToBool(Convert.ToInt32(reader[4])),     //inOut
                                        reader[5].ToString(),                   //name
                                        reader[6].ToString(),                   //color
@@ -92,7 +92,7 @@ class SqliteTrigger : Sqlite
                foreach(Trigger trigger in l)
                {
                        dbcmd.CommandText = "INSERT INTO " + table + 
-                               " (uniqueID, mode, modeID, ms, inOut, name, color, comments) VALUES (" +
+                               " (uniqueID, mode, modeID, ms, inOut, name, color, comments) VALUES (" +      
  //microseconds
                                trigger.ToSQLInsertString() + ")";
                        LogB.SQL(dbcmd.CommandText.ToString());
                        dbcmd.ExecuteNonQuery();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]