diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-07-12 23:16:56 +0530 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 13:58:17 -0700 |
commit | 17bc86853171675a553030d61e3e7a7d4797a74a (patch) | |
tree | da27371d9e0482beac1fbdef6ee218667d8e6189 /parse-xml.c | |
parent | 5bc4f974c585ae59eb7bb3d07f81591e1136ca9d (diff) | |
download | subsurface-17bc86853171675a553030d61e3e7a7d4797a74a.tar.gz |
Divinglog import: add workload warning
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index c110481d7..37f08ccec 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2909,6 +2909,14 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu strcpy(cur_event.name, "violation"); event_end(); } + + /* Workload warning */ + if (ptr[9] - '0') { + event_start(); + cur_event.time.seconds = sinterval * i; + strcpy(cur_event.name, "workload"); + event_end(); + } ptr += 12; } |