mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
feat: display energy usage in job view
- optional emission constant config line added
This commit is contained in:
@@ -78,6 +78,9 @@ func setupHomeRoute(i InfoType, r *http.Request) InfoType {
|
||||
|
||||
func setupJobRoute(i InfoType, r *http.Request) InfoType {
|
||||
i["id"] = mux.Vars(r)["id"]
|
||||
if config.Keys.EmissionConstant != 0 {
|
||||
i["emission"] = config.Keys.EmissionConstant
|
||||
}
|
||||
return i
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user