[Plot] Expose alternate domain values correctly

...from example telemetry (sine wave generator), to support
testing of switching among domains within plot.
This commit is contained in:
Victor Woeltjen 2015-11-10 16:12:34 -08:00
parent b30e72081c
commit 7dc6f553ac

View File

@ -62,7 +62,7 @@ define(
// so it's not checked for here, just formatted for display
// differently.
return (i + offset) * 1000 + firstTime * 1000 -
(domain === 'yesterday' ? ONE_DAY : 0);
(domain === 'yesterday' ? (ONE_DAY * 1000) : 0);
};
generatorData.getRangeValue = function (i, range) {