CmdStop: Migrated to intervalSummarize

This commit is contained in:
Paul Beckingham 2016-03-28 22:52:04 -04:00
parent b7cb6c136b
commit 259c78ce01

View file

@ -26,6 +26,7 @@
#include <cmake.h> #include <cmake.h>
#include <commands.h> #include <commands.h>
#include <timew.h>
#include <Interval.h> #include <Interval.h>
#include <iostream> #include <iostream>
@ -54,7 +55,7 @@ int CmdStop (
log.write ("debug", std::string ("Stopped tracking: ") + latest.serialize ()); log.write ("debug", std::string ("Stopped tracking: ") + latest.serialize ());
// User feedback. // User feedback.
std::cout << latest.summarize (); std::cout << intervalSummarize (rules, latest);
// If tags were specified, and after removing those tags, there are still // If tags were specified, and after removing those tags, there are still
// tags remaining, then add a contiguous interval. // tags remaining, then add a contiguous interval.
@ -73,7 +74,7 @@ int CmdStop (
log.write ("debug", std::string ("Started tracking: ") + latest.serialize ()); log.write ("debug", std::string ("Started tracking: ") + latest.serialize ());
// User feedback. // User feedback.
std::cout << latest.summarize (); std::cout << intervalSummarize (rules, latest);
} }
} }
} }