From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Mueller Subject: Bug in clocktable report with formula % Date: Wed, 28 Dec 2016 16:54:28 +0100 Message-ID: <20161228155427.GA14195@nowhere> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGYq-0007Z2-Vc for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:54:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMGYn-0006Pt-Su for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:54:41 -0500 Received: from vie01a-dmta-ch01-1.mx.upcmail.net ([84.116.36.91]:33287) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMGYn-0006P8-Lq for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:54:37 -0500 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-ch01.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1cMGYi-00053i-4T for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 16:54:32 +0100 Received: from nowhere (84-75-82-78.dclient.hispeed.ch [84.75.82.78]) by smtp.0x7.ch (Postfix) with ESMTPSA id B316E5E0A6 for ; Wed, 28 Dec 2016 16:54:29 +0100 (CET) Content-Disposition: inline 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: emacs-orgmode@gnu.org --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello 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 --lrZ03NoBR/3+SXJZ Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename="test.org" Content-Transfer-Encoding: quoted-printable * Foo=0A CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] =3D> 26:00= =0A* Bar=0A CLOCK: [2016-12-28 Wed 13:09]--[2016-12-28 Wed 15:09] =3D> 2:= 00=0A=0A* Report=0A#+BEGIN: clocktable :maxlevel 2 :scope file :formula %= =0A#+CAPTION: Clock summary at [2016-12-28 Wed 15:10]=0A| Headline | Ti= me | | % |=0A|--------------+-----------+---+-------|=0A| *Total= time* | *1d 4:00* | | 100.0 |=0A|--------------+-----------+---+-------|= =0A| Foo | 1d 2:00 | | 50.0 |=0A| Bar | 2:00 | = | 50.0 |=0A#+TBLFM: $4=3D'(org-clock-time% @2$2 $2..$3);%.1f=0A#+END:=0A= =0A=0A --lrZ03NoBR/3+SXJZ--