U
U
Unfex2017-07-18 19:24:58
Nginx
Unfex, 2017-07-18 19:24:58

Units of measurement in Nginx config?

What is the difference between the entry in the Nginx config:
client_header_buffer_size 2k;
and this one:
client_header_buffer_size 2K;?
Or this:
client_header_buffer_size 2m;
from this:
client_header_buffer_size 2M;?
Where, in general, can you find what prefixes are used in Nginx? There is an article , but it is not entirely clear there.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Denis Gaydak, 2019-01-30
@DyadyaEmil

GavriKos конечно все в комментариях порешал))
но оставлю для людей ленящихся читать.
переменные
people_all
people_in_golden_int
надо на старте игры инициализировать. в данном случае из PlayerPrefs подгрузить значения.))
а иначе так и будет там по умолчанию значение, заданное в скрипте/редакторе

Эмиль, 2019-01-30
@DyadyaEmil Автор вопроса

Для тех,кому окажется это полезным, вот так примерно выглядит скрипт загрузки префсов,который мы помещаем на отдельный игровой объект, активный с самого начала.

public class Loading : MonoBehaviour {
    public GameObject people;
    public GameObject people_in_golden;
    public GameObject gold;
   
  // Use this for initialization
  void Start () {
        

        gold.GetComponent<Text>().text = PlayerPrefs.GetFloat("Gold").ToString();
        people_in_golden.GetComponent<Text>().text = PlayerPrefs.GetInt("people_in_golden_int1").ToString();
        people.GetComponent<Text>().text = PlayerPrefs.GetInt("People_how_many1").ToString();
    }

A
Andrey Sanych, 2017-07-18
@Unfex

There is no difference. Whatever is more convenient for you, then use it.
In the documentation and in the working codes, I saw only with a small letter. And I recommend that you use only small letters.

E
evnuh, 2017-07-18
@evnuh

kilobytes (suffixes k and K) or megabytes (suffixes m and M)

k == K, m == M

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question