@@ -6,8 +6,7 @@ getBuckets:{[s;e;p](s+p*til(ceiling 1+e%p)-(ceiling s%p))}
66// params[`t] is table data
77// params[`tc] is time column to cut on
88// params[`tn] is table name
9- // params[`timerinterval] is the timer time interval to bucket the messages into.
10- // params[`datainterval] is the data time interval to bucket the messages into.
9+ // params[`replayinterval] is the data time interval to bucket the messages into.
1110tableDataToDataStream : {[params ]
1211 .dbg.params: params ;
1312 // Sort table by time column.
@@ -16,10 +15,10 @@ tableDataToDataStream:{[params]
1615 // get all times from table
1716 t_times : params [`t ][params [`tc ]];
1817
19- $ [not null params [`datainterval ];
18+ $ [not null params [`replayinterval ];
2019 [ // if there is an interval, bucket messages into this interval
2120 // make buckets of ten second intervals
22- times : getBuckets [params [`sts ];params [`ets ];params [`datainterval ]];
21+ times : getBuckets [params [`sts ];params [`ets ];params [`replayinterval ]];
2322
2423 // put start time in fornt of t_times
2524 t_times : params [`sts ], t_times ;
@@ -79,7 +78,7 @@ tableToDataStream:{[params]
7978// params[`tp] is the increment between times
8079// params[`timerfunc] is the timer function to use
8180getTimers : {[params ]
82- times : getBuckets [params [`sts ];params [`ets ];params [`replayinterval ]];
81+ times : getBuckets [params [`sts ];params [`ets ];params [`timerinterval ]];
8382 ([]time : times ;msg : params [`timerfunc ],' times )
8483 }
8584
@@ -92,11 +91,10 @@ getTimers:{[params]
9291// params[`timer] is whether or not to retrieve timer - Default 0b
9392// params[`h] is handle to hdb - Default 0 (self)
9493// params[`timerinterval] is the time interval to bucket the timer messages into. - Not Required
95- // params[`datainterval] is the time interval to bucket the upd messages into. - Not Required
9694// prarms[`tc] is the time column of the tables specified - Defualt `time
9795// params[`timerfunc] is the timer function to use in timer messages - Default `.z.ts
9896tablesToDataStream : {[params ]
99- defaults : `timer`h`syms`datainterval` replayinterval`tc`timerfunc`where ! (0b ;0 ;`symbol $ ();`timespan $ 0n ;`timespan $ 0n ;`time ;`.z.ts ;());
97+ defaults : `timer`h`syms`replayinterval`timerinterval `tc`timerfunc`where ! (0b ;0 ;`symbol $ ();`timespan $ 0n ;`timespan $ 0n ;`time ;`.z.ts ;());
10098 params : defaults , params ;
10199
102100 // check for default parameters `tabs`sts`ets
0 commit comments