提交 bd484df5 编写于 作者: S superjom

fix scalar bug

上级 dc316365
...@@ -130,6 +130,8 @@ struct Scalar { ...@@ -130,6 +130,8 @@ struct Scalar {
void AddRecord(int id, T value) { void AddRecord(int id, T value) {
auto record = tablet_.AddRecord(); auto record = tablet_.AddRecord();
record.SetId(id); record.SetId(id);
time_t time = std::time(nullptr);
record.SetTimeStamp(time);
auto entry = record.AddData<T>(); auto entry = record.AddData<T>();
entry.Set(value); entry.Set(value);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册