fix correct time plan labels

This commit is contained in:
levinsv 2019-01-09 23:28:37 +05:00
parent 51fc0dec7f
commit 5b99fd2237
4 changed files with 30 additions and 11 deletions

View file

@ -590,7 +590,7 @@ int recurse(ctlSQLGrid *g, int pos,int row, double &transfer) {
// ïîñ÷èòàåì âðåìÿ ðàáîòû óçëà
double m=1;
// -> Nested Loop (cost=205.13..273.44 rows=4 width=188) (actual time=13.157..13.157 rows=0 loops=1)
wxRegEx foundstr(wxT("actual time=.*?\\.\\.([0-9.]+).*?loops=([0-9]+)"),wxRE_ADVANCED);
wxRegEx foundstr(wxT("actual time=.*?\\.\\.([0-9.]+).*?loops=([0-9]+)\\)"),wxRE_ADVANCED);
if (foundstr.Matches(text)) {
wxString v=foundstr.GetMatch(text,1);
v.ToCDouble(&lastnode);
@ -621,7 +621,7 @@ int recurse(ctlSQLGrid *g, int pos,int row, double &transfer) {
//
//leveltime=leveltime+transfer;
//GroupRows *u=g->getgroup();
int tt=lastnode-transfer;
double tt=lastnode-transfer;
text = g->GetCellValue(row-1, 0);
if ((text.Find("Append")>0)
||(text.Find("Gather")>0))