tangled
alpha
login
or
join now
hauleth.dev
/
e9p
9
fork
atom
Pure Erlang implementation of 9p2000 protocol
filesystem
fs
9p2000
erlang
9p
9
fork
atom
overview
issues
4
pulls
pipelines
Fix typos in system_info files
hauleth.dev
1 month ago
d6344561
fd4159a2
verified
This commit was signed with the committer's
known signature
.
hauleth.dev
SSH Key Fingerprint:
SHA256:1hEP8QO8nM2KQfQ8jK4Q19y/CmqVZQI/cNSht3c1QlI=
+8
-7
1 changed file
expand all
collapse all
unified
split
src
e9p_sysfs.erl
+8
-7
src/e9p_sysfs.erl
···
39
39
~"alloc_util_allocators",
40
40
% ~"allocator_sizes", %% TBD
41
41
~"cpu_topology",
42
42
-
~"logocal_processors",
42
42
+
~"logical_processors",
43
43
~"logical_processors_available",
44
44
~"logical_processors_online",
45
45
~"cpu_quota",
···
48
48
~"garbage_collection",
49
49
~"heap_sizes",
50
50
~"heap_type",
51
51
-
~"max_heap_type",
51
51
+
~"max_heap_size",
52
52
~"message_queue_data",
53
53
~"min_heap_size",
54
54
~"min_bin_vheap_size",
···
63
63
~"process_limit",
64
64
~"end_time",
65
65
~"os_monotonic_time_source",
66
66
-
~"os_time_source",
66
66
+
~"os_system_time_source",
67
67
~"start_time",
68
68
-
~"time_correlation",
68
68
+
~"time_correction",
69
69
~"time_offset",
70
70
~"time_warp_mode",
71
71
~"tolerant_timeofday",
72
72
~"dirty_cpu_schedulers",
73
73
~"dirty_cpu_schedulers_online",
74
74
~"dirty_io_schedulers",
75
75
-
~"dirty_io_schedulers_online",
76
75
~"multi_scheduling",
77
76
~"multi_scheduling_blockers",
78
77
~"normal_multi_scheduling_blockers",
···
125
124
{ok, {Data, 0}, State};
126
125
open(_FID, [~"system_info", KeyB], _Mode, State) ->
127
126
Key = binary_to_atom(KeyB),
128
128
-
Val = erlang:system_info(Key),
129
129
-
Data = iolist_to_binary(io_lib:format("~p", [Val])),
127
127
+
Data = case erlang:system_info(Key) of
128
128
+
Val when is_binary(Val) -> Val;
129
129
+
Val -> iolist_to_binary(io_lib:format("~p", [Val]))
130
130
+
end,
130
131
{ok, {Data, 0}, State};
131
132
%% ===== Processes =====
132
133
open(_FID, [~"processes"], _Mode, State) ->