diff options
author | Siri Hansen <[email protected]> | 2017-11-06 14:11:50 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-11-06 14:11:50 +0100 |
commit | de48cf9a757c329dda26875f8cf7dd7c4425fc04 (patch) | |
tree | e97f468c5393cc8fb70aaed1e4ec6985b3a92752 /lib/observer/src/observer_html_lib.erl | |
parent | 7cd0a910a3d171840991092e335e9a5b2aeee74e (diff) | |
parent | 513efb0bb34daecff84ac09fc36977c6682fa84d (diff) | |
download | otp-de48cf9a757c329dda26875f8cf7dd7c4425fc04.tar.gz otp-de48cf9a757c329dda26875f8cf7dd7c4425fc04.tar.bz2 otp-de48cf9a757c329dda26875f8cf7dd7c4425fc04.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/observer/src/observer_html_lib.erl')
-rw-r--r-- | lib/observer/src/observer_html_lib.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/observer/src/observer_html_lib.erl b/lib/observer/src/observer_html_lib.erl index 68381bcc7b..8202f91030 100644 --- a/lib/observer/src/observer_html_lib.erl +++ b/lib/observer/src/observer_html_lib.erl @@ -355,11 +355,11 @@ href_proc_bin(From, T, Acc, LTB) -> PreviewStr end end; - [PreviewIntStr,SizeStr,Md5] when From =:= obs -> + [PreviewIntStr,PreviewBitSizeStr,SizeStr,Md5] when From =:= obs -> Size = list_to_integer(SizeStr), PreviewInt = list_to_integer(PreviewIntStr), - PrevSize = (trunc(math:log2(PreviewInt)/8)+1)*8, - PreviewStr = preview_string(Size,<<PreviewInt:PrevSize>>), + PreviewBitSize = list_to_integer(PreviewBitSizeStr), + PreviewStr = preview_string(Size,<<PreviewInt:PreviewBitSize>>), if LTB -> href("TARGET=\"expanded\"", ["#OBSBinary?key1="++PreviewIntStr++ |