[Time Conductor] Add non-time-like domain

Add a non-time-like domain to sine wave generator telemetry,
to support integration of custom domain formatting into
time conductor.
This commit is contained in:
Victor Woeltjen
2015-10-22 12:51:10 -07:00
parent c0fda5b572
commit 9bc4327c59
3 changed files with 68 additions and 0 deletions

View File

@ -58,6 +58,9 @@ define(
};
generatorData.getDomainValue = function (i, domain) {
if (domain === 'index') {
return i;
}
return (i + offset) * 1000 + firstTime * 1000 -
(domain === 'yesterday' ? ONE_DAY : 0);
};