wsp-10323 fix job progress

This commit is contained in:
me 2015-03-30 20:33:18 +04:00
parent aeec78ac02
commit 639e6600c0
2 changed files with 15 additions and 3 deletions

View file

@ -215,9 +215,14 @@ namespace WebsitePanel.Portal.VPS.UserControls
gauge.Visible = false;
if (e.Item.ItemIndex == task.GetLogs().Count - 1)
{
gauge.Visible = true;
gauge.Total = task.IndicatorMaximum;
gauge.Progress = task.IndicatorCurrent;
if (task.IndicatorCurrent == -1)
litRecord.Text += "...";
else
{
gauge.Visible = true;
gauge.Total = task.IndicatorMaximum;
gauge.Progress = task.IndicatorCurrent;
}
}
}
}