mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
- Release candidate 1
- Fixed bug where stats were gibberish whne there were no tasks, ie a new user.
This commit is contained in:
parent
0bf87ed311
commit
86a9f0f6d5
3 changed files with 10 additions and 7 deletions
|
@ -7,7 +7,7 @@
|
||||||
+ Bug: configure.ac does not properly determine ncurses availability
|
+ Bug: configure.ac does not properly determine ncurses availability
|
||||||
- Bug: when run without arguments, task dumps core on Solaris 10
|
- Bug: when run without arguments, task dumps core on Solaris 10
|
||||||
- Bug: Cannot seem to use the percent character in a task description
|
- Bug: Cannot seem to use the percent character in a task description
|
||||||
- Bug: New installation "task stats" reports newest task 12/31/1969
|
+ Bug: New installation "task stats" reports newest task 12/31/1969
|
||||||
+ Bug: New installation task projects displays header but no data - should short-circuit
|
+ Bug: New installation task projects displays header but no data - should short-circuit
|
||||||
+ Bug: incorrect color specification in sample .taskrc file
|
+ Bug: incorrect color specification in sample .taskrc file
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.61)
|
AC_PREREQ(2.61)
|
||||||
AC_INIT(task, 0.9.9, bugs@beckingham.net)
|
AC_INIT(task, 1.0.0, bugs@beckingham.net)
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_SRCDIR([src/task.cpp])
|
AC_CONFIG_SRCDIR([src/task.cpp])
|
||||||
AC_CONFIG_HEADER([auto.h])
|
AC_CONFIG_HEADER([auto.h])
|
||||||
|
|
13
src/task.cpp
13
src/task.cpp
|
@ -2200,11 +2200,14 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf)
|
||||||
<< "Deleted " << deletedT << std::endl
|
<< "Deleted " << deletedT << std::endl
|
||||||
<< "Total " << totalT << std::endl;
|
<< "Total " << totalT << std::endl;
|
||||||
|
|
||||||
Date e (earliest);
|
if (tasks.size ())
|
||||||
std::cout << "Oldest task " << e.toString () << std::endl;
|
{
|
||||||
Date l (latest);
|
Date e (earliest);
|
||||||
std::cout << "Newest task " << l.toString () << std::endl;
|
std::cout << "Oldest task " << e.toString () << std::endl;
|
||||||
std::cout << "Task used for " << formatSeconds (latest - earliest) << std::endl;
|
Date l (latest);
|
||||||
|
std::cout << "Newest task " << l.toString () << std::endl;
|
||||||
|
std::cout << "Task used for " << formatSeconds (latest - earliest) << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
if (totalT)
|
if (totalT)
|
||||||
std::cout << "Task added every " << formatSeconds ((latest - earliest) / totalT) << std::endl;
|
std::cout << "Task added every " << formatSeconds ((latest - earliest) / totalT) << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue