Skip to content
Snippets Groups Projects
Commit 582fe58e authored by Nils-Arne Dreier's avatar Nils-Arne Dreier Committed by Siddhant Tibrewal
Browse files

fix: datetime shift

parent f5f85475
No related branches found
No related tags found
No related merge requests found
Pipeline #100776 waiting for manual action
......@@ -42,7 +42,7 @@ namespace coyote {
}
}
std::string Field::datetime() const { return yac_cget_field_datetime(_target_field_id); }
std::string Field::datetime() const { return _datetime; }
bool Field::is_done() const { return _info == YAC_ACTION_OUT_OF_BOUND; }
bool Field::is_ready() {
......@@ -50,6 +50,7 @@ namespace coyote {
if (!semaphore.try_acquire())
return false;
int ierror = 0;
_datetime = yac_cget_field_datetime(_target_field_id);
yac_cget_async_(_target_field_id, _collection_size, _buffer.data(), &_info, &ierror);
_get_started = true;
}
......@@ -59,6 +60,7 @@ namespace coyote {
return false;
yac_cget_action(_target_field_id, &_info);
_get_started = false;
_datetime = yac_cget_field_datetime(_target_field_id);
return true;
}
......
......@@ -44,6 +44,7 @@ namespace coyote {
size_t _point_size;
int _info = YAC_ACTION_NONE;
bool _get_started = false;
std::string _datetime;
};
} // namespace coyote
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment