emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Mueller <lists@0x7.ch>
To: emacs-orgmode@gnu.org
Subject: Re: Bug in clocktable report with formula %
Date: Mon, 6 Feb 2017 00:29:53 +0100	[thread overview]
Message-ID: <20170205232953.GA11539@nowhere> (raw)
In-Reply-To: <871swrpov1.fsf@nicolasgoaziou.fr>


[-- Attachment #1.1: Type: text/plain, Size: 1593 bytes --]

Hello

I just noticed with updated org (org-20170124), although days are no
longer ignored, the percentage calculation is still wrong.

It looks to me like the problem is that org-effort-durations calculates
minutes in a day with 8 hours per day (I assume the idea was to only
plan for 8 hour workdays).

Changing org-effort-durations to calculate with 24 hour days gives the
correct result of 93% / 7%.

Thanks & best regards,
Andreas


Nicolas Goaziou wrote:
> Hello,
> 
> Andreas Mueller <lists@0x7.ch> 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,
> 


[-- Attachment #1.2: test.org --]
[-- Type: application/vnd.lotus-organizer, Size: 575 bytes --]

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

  reply	other threads:[~2017-02-05 23:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-28 15:54 Bug in clocktable report with formula % Andreas Mueller
2016-12-29  0:20 ` Nicolas Goaziou
2017-02-05 23:29   ` Andreas Mueller [this message]
2017-02-07 16:01     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170205232953.GA11539@nowhere \
    --to=lists@0x7.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).