projects
/
minecraft_web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forgot to divide the memory by 3...
[minecraft_web.git]
/
backend
/
src
/
minecraft_controller.rs
diff --git
a/backend/src/minecraft_controller.rs
b/backend/src/minecraft_controller.rs
index
451b016
..
4a9d754
100644
(file)
--- a/
backend/src/minecraft_controller.rs
+++ b/
backend/src/minecraft_controller.rs
@@
-4,7
+4,7
@@
use chrono::{ DateTime, offset::Local };
\r
#[derive(Clone, Debug)]
\r
pub struct MinecraftExe {
\r
\r
#[derive(Clone, Debug)]
\r
pub struct MinecraftExe {
\r
- memory: u64, // [
k
B].
\r
+ memory: u64, // [B].
\r
load_average_5min: f64, // [%].
\r
uptime: u64, // [s].
\r
world_size: u64, // [B].
\r
load_average_5min: f64, // [%].
\r
uptime: u64, // [s].
\r
world_size: u64, // [B].
\r
@@
-15,7
+15,7
@@
pub struct MinecraftExe {
\r
impl MinecraftExe {
\r
pub fn format_memory(&self) -> String {
\r
\r
impl MinecraftExe {
\r
pub fn format_memory(&self) -> String {
\r
- format_byte_size(self.memory
* 1024
, 2)
\r
+ format_byte_size(self.memory, 2)
\r
}
\r
\r
pub fn format_load_average(&self) -> String {
\r
}
\r
\r
pub fn format_load_average(&self) -> String {
\r