Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3a202535 authored by Florent Didier's avatar Florent Didier
Browse files

[dev] cpu_parameters.rb: better sort of the table

parent 2adbc83e
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,11 @@ class CPUParametersGenerator < WikiGenerator
}
#Sort by cluster date
table_data.sort_by! { |row|
DateTime.parse(row[0])
[DateTime.parse(row[0]), row[1], row[2]]
}
#Table construction
table_options = 'class="G5KDataTable" border="1" style="text-align: center;"'
table_options = 'class="wikitable sortable"'
@generated_content = MW.generate_table(table_options, table_columns, table_data)
@generated_content += MW.italic(MW.small("Generated from the Grid5000 APIs on " + Time.now.strftime("%Y-%m-%d")))
@generated_content += MW::LINE_FEED
......@@ -63,5 +63,5 @@ generator = CPUParametersGenerator.new("Generated/CPUParameters")
options = WikiGenerator::parse_options
if (options)
WikiGenerator::exec(generator, options)
exit(WikiGenerator::exec(generator, options))
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment