mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Revert "CmdStats: Converted from strtol to std::stoul"
This reverts commit 2b8ce968fc
.
This commit is contained in:
parent
49ad7c2ce2
commit
03d564dd78
1 changed files with 2 additions and 2 deletions
|
@ -125,13 +125,13 @@ int CmdStats::execute (std::string& output)
|
|||
if (task.is_blocked) ++blockedT;
|
||||
if (task.is_blocking) ++blockingT;
|
||||
|
||||
time_t entry = static_cast <time_t> (std::stoul (task.get ("entry")));
|
||||
time_t entry = strtol (task.get ("entry").c_str (), NULL, 10);
|
||||
if (entry < earliest) earliest = entry;
|
||||
if (entry > latest) latest = entry;
|
||||
|
||||
if (status == Task::completed)
|
||||
{
|
||||
time_t end = static_cast <time_t> (std::stoul (task.get ("end")));
|
||||
time_t end = strtol (task.get ("end").c_str (), NULL, 10);
|
||||
daysPending += (end - entry) / 86400.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue