Skip to content
Snippets Groups Projects
Commit 4686dd2a authored by Mateusz Morusiewicz's avatar Mateusz Morusiewicz
Browse files

Meaner3: fix NODATA in second probe each month

parent 126dd4bf
No related branches found
Tags 3.17.2.1
No related merge requests found
......@@ -101,7 +101,7 @@ int TSaveParam::WriteBuffered(const fs::wpath& directory, time_t t, short int* d
/* get index */
index = szb_probeind(t, probe_length);
index = ((size_t)index > data_count) ? index - data_count + 1 : 0;
index = ((size_t)index >= data_count) ? index - data_count + 1 : 0;
assert(index >= 0);
sz_log(10, "TSaveParam::Write(): index in file: %ld", index);
......
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