mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 23:33:12 +09:00
.
This commit is contained in:
1 parent
54f81fc09e
commit
c05ff12c3a
1 file changed
+14
-2
@@ -167,11 +167,17 @@ function Elements.stats_table.calculate_display_data(s_index)
|
|||||||
return {
|
return {
|
||||||
production = {
|
production = {
|
||||||
value = production,
|
value = production,
|
||||||
caption = format_string(
|
caption = production < 1
|
||||||
|
and format_string(
|
||||||
"%s (%s) / %s",
|
"%s (%s) / %s",
|
||||||
format_energy(energy_production, "W"),
|
format_energy(energy_production, "W"),
|
||||||
format_energy(limit_production, "W"),
|
format_energy(limit_production, "W"),
|
||||||
format_energy(energy_max, "W")
|
format_energy(energy_max, "W")
|
||||||
|
)
|
||||||
|
or format_string(
|
||||||
|
"%s / %s",
|
||||||
|
format_energy(energy_production, "W"),
|
||||||
|
format_energy(energy_max, "W")
|
||||||
),
|
),
|
||||||
tooltip = format_string(
|
tooltip = format_string(
|
||||||
"%.1f %%",
|
"%.1f %%",
|
||||||
@@ -180,11 +186,17 @@ function Elements.stats_table.calculate_display_data(s_index)
|
|||||||
},
|
},
|
||||||
sustained = {
|
sustained = {
|
||||||
value = sustained,
|
value = sustained,
|
||||||
caption = format_string(
|
caption = sustained < 1
|
||||||
|
and format_string(
|
||||||
"%s (%s) / %s",
|
"%s (%s) / %s",
|
||||||
format_energy(energy_sustained, "W"),
|
format_energy(energy_sustained, "W"),
|
||||||
format_energy(limit_sustained, "W"),
|
format_energy(limit_sustained, "W"),
|
||||||
format_energy(statistics.energy_total_production, "W")
|
format_energy(statistics.energy_total_production, "W")
|
||||||
|
)
|
||||||
|
or format_string(
|
||||||
|
"%s / %s",
|
||||||
|
format_energy(energy_sustained, "W"),
|
||||||
|
format_energy(statistics.energy_total_production, "W")
|
||||||
),
|
),
|
||||||
tooltip = format_string(
|
tooltip = format_string(
|
||||||
"%.1f %%",
|
"%.1f %%",
|
||||||
|
|||||||
Reference in new issue
Block a user