Project

General

Profile

Actions

bug #6086

closed

Percentage value in ProgressMonitor accuratly rounded

Added by Andreas Kohlbecker over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:

Description

The percentage value on the progress of the indexing process is often reported as 99,99% when the job is completet.
The commit commit:cdm|1ec5d31 (better percentage values from Progressmonitor) should fix that but the problem is not fully solved.

a.muller wote:

beim Indexieren könnte man auch folgendes noch runden: indexing DescriptionElementBase [chunk 3.168351341931038/6]

Ausserdem ist das Endergebnis immer noch nicht immer 100%, sondern diesmal z.B. 100.01%. Math.ceil ist noch nicht ganz die richtige Funktion.

Ich verwende ja in letzter Zeit immer mehr BigDecimal, da ist das viel klarer definiert. Vielleicht sollten wir den ProgressMonitor mal diesbezöglich anpassen.

Actions

Also available in: Atom PDF