From c91ecb62af8f90e271e07266058d877e5ed45bdc Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 12 Jul 2015 23:16:53 +0530 Subject: Divinglog import: RBT warning event added Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- parse-xml.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index d651fa2b4..2750b3f25 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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; } -- cgit v1.2.3-70-g09d2