beginning resamplings with 0 for better graphing
This commit is contained in:
parent
5084f2bd07
commit
c412c25fca
@ -20,13 +20,19 @@ namespace Selector
|
|||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sortedScrobblesIter = sortedScrobbles.GetEnumerator();
|
var sortedScrobblesIter = sortedScrobbles.GetEnumerator();
|
||||||
sortedScrobblesIter.MoveNext();
|
sortedScrobblesIter.MoveNext();
|
||||||
|
|
||||||
var earliest = sortedScrobbles.First().Timestamp;
|
var earliest = sortedScrobbles.First().Timestamp;
|
||||||
var latest = sortedScrobbles.Last().Timestamp;
|
var latest = sortedScrobbles.Last().Timestamp;
|
||||||
|
|
||||||
var enumeratorExhausted = false;
|
yield return new CountSample()
|
||||||
|
{
|
||||||
|
TimeStamp = earliest - (window / 2),
|
||||||
|
Value = 0
|
||||||
|
};
|
||||||
|
|
||||||
|
var enumeratorExhausted = false;
|
||||||
|
|
||||||
for (var windowStart = earliest; windowStart <= latest; windowStart += window)
|
for (var windowStart = earliest; windowStart <= latest; windowStart += window)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user