From 03d564dd78cdf8fde2d7b19d6d0941b9904cb555 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 2 Nov 2015 18:38:59 -0500 Subject: [PATCH] Revert "CmdStats: Converted from strtol to std::stoul" This reverts commit 2b8ce968fc4e42656b308659819f095664b1a52d. --- src/commands/CmdStats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdStats.cpp b/src/commands/CmdStats.cpp index 12e6cbb40..1f08e78c3 100644 --- a/src/commands/CmdStats.cpp +++ b/src/commands/CmdStats.cpp @@ -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 (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 (std::stoul (task.get ("end"))); + time_t end = strtol (task.get ("end").c_str (), NULL, 10); daysPending += (end - entry) / 86400.0; }