Revert "CmdSummary: Converted from strtol to std::stoul"

This reverts commit 0d88df1c18.
This commit is contained in:
Paul Beckingham 2015-11-02 18:38:44 -05:00
parent de43e34c5e
commit 49ad7c2ce2

View file

@ -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);
}