mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdBurndown: Converted from ISO8601 to Duration
This commit is contained in:
parent
72076abc74
commit
61b4e36b2c
1 changed files with 4 additions and 3 deletions
|
@ -35,6 +35,7 @@
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Filter.h>
|
#include <Filter.h>
|
||||||
#include <ISO8601.h>
|
#include <ISO8601.h>
|
||||||
|
#include <Duration.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
#include <shared.h>
|
#include <shared.h>
|
||||||
|
@ -838,14 +839,14 @@ void Chart::calculateRates ()
|
||||||
rate_message << "Chart::calculateRates Net reduction is "
|
rate_message << "Chart::calculateRates Net reduction is "
|
||||||
<< (_peak_count - _current_count)
|
<< (_peak_count - _current_count)
|
||||||
<< " tasks in "
|
<< " tasks in "
|
||||||
<< ISO8601p (now.toEpoch () - _peak_epoch).format ()
|
<< Duration (now.toEpoch () - _peak_epoch).formatISO ()
|
||||||
<< " = "
|
<< " = "
|
||||||
<< _net_fix_rate
|
<< _net_fix_rate
|
||||||
<< " tasks/d";
|
<< " tasks/d";
|
||||||
context.debug (rate_message.str ());
|
context.debug (rate_message.str ());
|
||||||
|
|
||||||
ISO8601p delta (static_cast <time_t> (_current_count / fix_rate));
|
Duration delta (static_cast <time_t> (_current_count / fix_rate));
|
||||||
ISO8601d end = now + delta;
|
ISO8601d end = now + delta.toTime_t ();
|
||||||
|
|
||||||
// Prefer dateformat.report over dateformat.
|
// Prefer dateformat.report over dateformat.
|
||||||
std::string format = context.config.get ("dateformat.report");
|
std::string format = context.config.get ("dateformat.report");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue