Bug #1130

Time periods are incorrectly shown in CLI

Added by Javi Fontan over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:02/13/2012
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 3.4 - S0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.2

Description

Time periods are displayed suing time objects. This creates some problems, ex.

onevm:

The time for a running VM will fall back to 0 day and 0 months after a year

oneacct:

The time for a running VM displayed in table format is wrongly displayed. This time is correctly computed and the output for xml and json is correct.

Associated revisions

Revision 407350bb
Added by Javi Fontan over 9 years ago

bug #1130: add period_to_str method

This methods is used to create strings for time periods with this format:

80d 10:23:33

Revision da82e971
Added by Javi Fontan over 9 years ago

bug #1130: use period_to_str in oneacct

Revision 179487ac
Added by Daniel Molina over 9 years ago

bug #1130: Use period_to_str in onevm

Revision 45ea4ffb
Added by Javi Fontan about 9 years ago

bug #1130: add period_to_str method

This methods is used to create strings for time periods with this format:

80d 10:23:33(cherry picked from commit 407350bbb198826ffcb0dc1bf9cb1a822a415761)

Revision de2feef0
Added by Javi Fontan about 9 years ago

bug #1130: use period_to_str in oneacct(cherry picked from commit da82e97164306ac0b7ea81c1775903f18c428c5e)

Revision 3435edd2
Added by Daniel Molina about 9 years ago

bug #1130: Use period_to_str in onevm
(cherry picked from commit 179487ac359950ef8e73f4423fcb6fea7e3b5263)

Revision 9d98c420
Added by Javi Fontan about 9 years ago

bug #1130: use period_to_str in oneacct(cherry picked from commit da82e97164306ac0b7ea81c1775903f18c428c5e)

History

#1 Updated by Javi Fontan over 9 years ago

  • Subject changed from oneacct returns invalid time data to Time periods are incorrectly shown in CLI
  • Description updated (diff)

#2 Updated by Ruben S. Montero over 9 years ago

  • Description updated (diff)
  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF