mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-01 18:27:20 +02:00
Build
- More missing include files.
This commit is contained in:
parent
08c4d4bdfe
commit
94318a6925
8 changed files with 28 additions and 20 deletions
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <stdlib.h>
|
||||
#include <ViewText.h>
|
||||
#include <Duration.h>
|
||||
#include <Context.h>
|
||||
|
@ -108,13 +109,13 @@ int CmdStatistics::execute (const std::string& command_line, std::string& output
|
|||
if (it->getStatus () == Task::recurring) ++recurringT;
|
||||
if (it->getStatus () == Task::waiting) ++waitingT;
|
||||
|
||||
time_t entry = atoi (it->get ("entry").c_str ());
|
||||
time_t entry = strtol (it->get ("entry").c_str (), NULL, 10);
|
||||
if (entry < earliest) earliest = entry;
|
||||
if (entry > latest) latest = entry;
|
||||
|
||||
if (it->getStatus () == Task::completed)
|
||||
{
|
||||
time_t end = atoi (it->get ("end").c_str ());
|
||||
time_t end = strtol (it->get ("end").c_str (), NULL, 10);
|
||||
daysPending += (end - entry) / 86400.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue