Pure Erlang implementation of 9p2000 protocol
filesystem fs 9p2000 erlang 9p

Fix typos in system_info files

hauleth.dev d6344561 fd4159a2

verified
+8 -7
+8 -7
src/e9p_sysfs.erl
··· 39 39 ~"alloc_util_allocators", 40 40 % ~"allocator_sizes", %% TBD 41 41 ~"cpu_topology", 42 - ~"logocal_processors", 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 - ~"max_heap_type", 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 - ~"os_time_source", 66 + ~"os_system_time_source", 67 67 ~"start_time", 68 - ~"time_correlation", 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 - ~"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 - Val = erlang:system_info(Key), 129 - Data = iolist_to_binary(io_lib:format("~p", [Val])), 127 + Data = case erlang:system_info(Key) of 128 + Val when is_binary(Val) -> Val; 129 + Val -> iolist_to_binary(io_lib:format("~p", [Val])) 130 + end, 130 131 {ok, {Data, 0}, State}; 131 132 %% ===== Processes ===== 132 133 open(_FID, [~"processes"], _Mode, State) ->