Skip to content

Commit

Permalink
availableProcessors
Browse files Browse the repository at this point in the history
  • Loading branch information
hyakutake committed May 10, 2024
1 parent 68840ec commit 603ce1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class IndexController {
String index(Model model) {
model.addAttribute("contents", contents);
model.addAttribute("envMap", new TreeMap<String,String>(System.getenv()));
model.addAttribute("availableProcessors", Runtime.getRuntime().availableProcessors());
return "index";
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p th:text="${contents}">ecsfgex default text on thymeleaf template!!</p>
</div>
<div>
<p>ああああああああ</p>
<p th:text="|availableProcessors = ${availableProcessors}|"></p>
</div>
<ul>
<li><a href="https://github.com/hyakutem/ecsfgex" target="_blank">ソースコード - https://github.com/hyakutem/ecsfgex</a></li>
Expand Down

0 comments on commit 603ce1c

Please sign in to comment.