Merge pull request #136 from GaborApatiNagy/xs64bit_CA-140636

CA-140636: Creedence XenCenter threw an unexpected error (build 87029)
This commit is contained in:
Mihaela Stoica 2014-07-22 17:04:48 +01:00
commit c58ad08894

View File

@ -506,7 +506,9 @@ namespace XenAdmin.Controls.CustomDataGraph
{
int setindex = ArchiveMaintainer.Archives[currentwidth].Sets.IndexOf(set);
todraw = new List<DataPoint>(ArchiveMaintainer.Archives[currentwidth].Sets[setindex].Points);
set.MergePointCollection(set.BinaryChop(set.Points, new DataTimeRange(ScrollViewLeft.Ticks, todraw[todraw.Count - 1].X, GraphResolution.Ticks)), todraw);
if (todraw.Count > 0)
set.MergePointCollection(set.BinaryChop(set.Points, new DataTimeRange(ScrollViewLeft.Ticks, todraw[todraw.Count - 1].X, GraphResolution.Ticks)), todraw);
}
set.RefreshCustomY(everything, todraw);