mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Revert "CmdSummary: Converted from strtol to std::stoul"
This reverts commit 0d88df1c18
.
This commit is contained in:
parent
de43e34c5e
commit
49ad7c2ce2
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ int CmdSummary::execute (std::string& output)
|
|||
{
|
||||
++countPending[parent];
|
||||
|
||||
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)
|
||||
sumEntry[parent] = sumEntry[parent] + (double) (now - entry);
|
||||
}
|
||||
|
@ -122,8 +122,8 @@ int CmdSummary::execute (std::string& output)
|
|||
{
|
||||
++countCompleted[parent];
|
||||
|
||||
time_t entry = static_cast <time_t> (std::stoul (task.get ("entry")));
|
||||
time_t end = static_cast <time_t> (std::stoul (task.get ("end")));
|
||||
time_t entry = strtol (task.get ("entry").c_str (), NULL, 10);
|
||||
time_t end = strtol (task.get ("end").c_str (), NULL, 10);
|
||||
if (entry && end)
|
||||
sumEntry[parent] = sumEntry[parent] + (double) (end - entry);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue