Diff
Not logged in

Differences From:

File src/stat.c part of check-in [cf84ce2d8c] - Fix a typo on the "stat" page. by drh on 2008-05-07 23:56:28. [view]

To:

File src/stat.c part of check-in [dab84c22ee] - corrected 'Duration of Project' to round up, so a 2-day-old project doesn't show up as 1 day old by stephan on 2008-09-27 18:52:37. [view]

@@ -84,9 +84,9 @@
   n = db_int(0, "SELECT count(*) FROM tag WHERE +tagname GLOB 'ticket-*'");
   @ %d(n)
   @ </td></tr>
   @ <tr><th>Duration&nbsp;Of&nbsp;Project:</th><td>
-  n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)");
+  n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event) + 0.99");
   @ %d(n) days
   @ </td></tr>
   @ <tr><th>Project&nbsp;ID:</th><td>
   @ %h(db_get("project-code",""))