Divinglog import: RBT warning event added

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-07-12 23:16:53 +05:30 committed by Dirk Hohndel
parent 495aab8f20
commit c91ecb62af

View file

@ -2885,6 +2885,17 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
sample_end();
}
for (i = 0, ptr = data[1]; i * 12 < len; ++i) {
/* Remaining bottom time warning */
if (ptr[6] - '0') {
event_start();
cur_event.time.seconds = sinterval * i;
strcpy(cur_event.name, "rbt");
event_end();
}
ptr += 12;
}
return 0;
}