为链式 TP 添加 tplog 写入能力
adding tplog writing ability to chained TP
我正在尝试让 Chained TP 也写入 tplog 文件。
但是,我从进程日志中看到的是每秒l。
参考这个 link:https://github.com/KxSystems/kdb/blob/master/tick/chainedtick.q
在 shell 脚本中我已经指出要订阅哪个 tp。
我更改了这两个函数:
if[system"t";
.z.ts:{.u.pub'[.u.t;value each .u.t];@[`.;.u.t;@[;`sym;`g#]0#]};
upd:{[t;x] t insert x;if[l;l enlist (`upd;t;x);j+:1];}]
if[not system"t";
upd:{[t;x] .u.pub[t;x];if[l;l enlist (`upd;t;x);i+:1];}]
还添加了
.u.tick[src;.z.x 1];
最后。
仍在尝试弄清楚为什么 tplog 中没有任何内容?
我正在尝试让 Chained TP 也写入 tplog 文件。
但是,我从进程日志中看到的是每秒l。 参考这个 link:https://github.com/KxSystems/kdb/blob/master/tick/chainedtick.q 在 shell 脚本中我已经指出要订阅哪个 tp。
我更改了这两个函数:
if[system"t";
.z.ts:{.u.pub'[.u.t;value each .u.t];@[`.;.u.t;@[;`sym;`g#]0#]};
upd:{[t;x] t insert x;if[l;l enlist (`upd;t;x);j+:1];}]
if[not system"t";
upd:{[t;x] .u.pub[t;x];if[l;l enlist (`upd;t;x);i+:1];}]
还添加了
.u.tick[src;.z.x 1];
最后。
仍在尝试弄清楚为什么 tplog 中没有任何内容?