diff options
author | Björn-Egil Dahlberg <[email protected]> | 2013-07-11 12:59:40 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2013-07-15 17:01:36 +0200 |
commit | 5576be6a5a874dbeb2b12014b5834542756e72b3 (patch) | |
tree | 0f4073767d851be539ad67b73a6ad2d98bab9049 /lib/runtime_tools/src/system_information.erl | |
parent | d3d5908a516f4d01ae80534b9ecf336b266d1788 (diff) | |
download | otp-5576be6a5a874dbeb2b12014b5834542756e72b3.tar.gz otp-5576be6a5a874dbeb2b12014b5834542756e72b3.tar.bz2 otp-5576be6a5a874dbeb2b12014b5834542756e72b3.zip |
Fix system_information get_beam_name/0
os:getenv("EMU") is not set for windows, use "beam" instead.
Diffstat (limited to 'lib/runtime_tools/src/system_information.erl')
-rw-r--r-- | lib/runtime_tools/src/system_information.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/runtime_tools/src/system_information.erl b/lib/runtime_tools/src/system_information.erl index 5c6516f72f..b0f03126b9 100644 --- a/lib/runtime_tools/src/system_information.erl +++ b/lib/runtime_tools/src/system_information.erl @@ -472,4 +472,8 @@ get_beam_name() -> false -> ""; true -> ".smp" end, - os:getenv("EMU") ++ Type ++ Flavor. + Beam = case os:getenv("EMU") of + false -> "beam"; + Value -> Value + end, + Beam ++ Type ++ Flavor. |