Project

General

Profile

Tâche #34111

Scénario #34055: Traitement express MEN (16-18)

Interface Zéphir 2.8 : l'avancée de la mise en cache des configurations affichée devrait être arrondi

Added by Joël Cuissinat over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/27/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Ça a beau être cosmétique, moi, je trouve ça immonde ;)

Mise en cache des configurations    59.13978494623656 %
Nombre total de serveurs    567
Serveurs non enregistrés    567

Associated revisions

Revision ac4808c0 (diff)
Added by Joël Cuissinat over 1 year ago

Display loading percent with an integer (ref: #34111)

History

#1 Updated by Joël Cuissinat over 1 year ago

On pourrait utiliser : print("%.2f" % value) en plus la ligne n'est pas affichée à 100 ;)

Visiblement, en 2.7.2, on voit uniquement des nombres entiers... encore un changement python3 alors...

root@zephir:~# python2 -c "print (53 * 100) / 231" 
22
root@zephir:~# python3 -c "print ((53 * 100) / 231)" 
22.943722943722943

#2 Updated by Joël Cuissinat over 1 year ago

  • Tracker changed from Demande to Tâche
  • Subject changed from Interface Zéphir : l'avancée de la mise en cache des configurations affichée devrait être arrondi to Interface Zéphir 2.8 : l'avancée de la mise en cache des configurations affichée devrait être arrondi
  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat
  • Parent task set to #34055

#3 Updated by Joël Cuissinat over 1 year ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#4 Updated by Fabrice Barconnière over 1 year ago

OK, affichage des nombres entiers.
Report des commit OK

# zephir-parc (master=)$ git tag --contains ac4808c0 
pkg/eole/eole-2.8/2.8.0-126
pkg/eole/eole-2.8/2.8.0-127
pkg/eole/eole-2.8/2.8.1-70
pkg/eole/eole-2.8/2.8.1-71
pkg/eole/eole-2.9/2.9.0-13

#5 Updated by Fabrice Barconnière over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF