From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug in clocktable report with formula % Date: Thu, 29 Dec 2016 01:20:50 +0100 Message-ID: <871swrpov1.fsf@nicolasgoaziou.fr> References: <20161228155427.GA14195@nowhere> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMOSm-0003dv-3L for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 19:20:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMOSl-0004f7-8e for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 19:20:56 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:56410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMOSl-0004ew-2L for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 19:20:55 -0500 In-Reply-To: <20161228155427.GA14195@nowhere> (Andreas Mueller's message of "Wed, 28 Dec 2016 16:54:28 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Andreas Mueller Cc: emacs-orgmode@gnu.org Hello, Andreas Mueller writes: > I think I may have found a bug in the clocktable report: When using > :formula %, it seems days are ignored in time percentage calculation. > > I have attached a simple test.org which demonstrates this. > > Emacs version: 24.5.1 > Org version: Org mode version 9.0.2 (9.0.2-10-g820d1e-elpa @ ~/.emacs.d/elpa/org-20161223/) > > Thanks & best regards, > Andreas > > * Foo > CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00 > * Bar > CLOCK: [2016-12-28 Wed 13:09]--[2016-12-28 Wed 15:09] => 2:00 > > * Report > #+BEGIN: clocktable :maxlevel 2 :scope file :formula % > #+CAPTION: Clock summary at [2016-12-28 Wed 15:10] > | Headline | Time | | % | > |--------------+-----------+---+-------| > | *Total time* | *1d 4:00* | | 100.0 | > |--------------+-----------+---+-------| > | Foo | 1d 2:00 | | 50.0 | > | Bar | 2:00 | | 50.0 | > #+TBLFM: $4='(org-clock-time% @2$2 $2..$3);%.1f > #+END: Fixed. Thank you. Regards, -- Nicolas Goaziou