File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
#include < string>
5
5
#include < tabulate/table.hpp>
6
6
#include " nlohmann/json.hpp"
7
+ #include " utils/format_utils.h"
7
8
#include " utils/logging_utils.h"
8
9
#include " utils/string_utils.h"
9
10
@@ -52,8 +53,8 @@ void PsCmd::PrintModelStatusList(
52
53
table.add_row ({
53
54
model_status.model ,
54
55
model_status.engine ,
55
- model_status.ram ,
56
- model_status.vram ,
56
+ format_utils::BytesToHumanReadable ( model_status.ram ) ,
57
+ format_utils::BytesToHumanReadable ( model_status.vram ) ,
57
58
string_utils::FormatTimeElapsed (model_status.start_time ),
58
59
});
59
60
}
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include < cstdint>
3
4
#include < string>
4
5
#include < vector>
5
6
@@ -8,9 +9,9 @@ namespace commands {
8
9
struct ModelLoadedStatus {
9
10
std::string engine;
10
11
std::string model;
11
- std::string ram;
12
+ uint64_t ram;
12
13
uint64_t start_time;
13
- std::string vram;
14
+ uint64_t vram;
14
15
};
15
16
16
17
class PsCmd {
You can’t perform that action at this time.
0 commit comments