You are not logged in.
Pages: 1
I have faced the issue of RAM,HDD size is Mio to MB or Gio to GB. I want revert back to MB or GB instead of Mio or Gio of HDD.
At the time of installation, it is working fine. Exactly we don't know, somebody change the options, it will change like that
Offline
There is no real conversion mechanism for data sizes in GLPI at the moment. There is a discrepancy between the English and English (US) translations though. English uses Mio/Gio while English (US) is MB/GB.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Thanks for updating. After changing the translations from English to English(US), everything is looks good. But system memory is showing 8 MB instead of 8 GB , 12 MB instead of 12 GB like that. How we will rectify that one.
Offline
Where is it showing the incorrect units at and which GLPI version so I can check too?
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
I have configured GLPI-9.5.4 in Ubuntu Linux and updated the assets using FusionInventory-agent in windows,Linux and schedule task for network devices , esxi servers also.At that time i am selecting English instead of English(US) and i am not configure timezone. So assets are showing Memory and HDD sizes are showing in Mio instead of MB or Gio instead of GB. So Recently i have configured timezone with IST and change the language from English to English(US). So Memory and HDD size is showing MB instead of Mio but it is showing wrong size ( For example, Memory is showing 8MB instead of 8 GB).
Offline
Hi gopalakrishna99,
this may be an agent issue. You should check the generated XML inventory and check for the wrong values there. If you find wrong values there, then you should open an agent issue reporting where exactly is the issue so we can investigate why the values are wrong (hoping you're using the latest available agent ).
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
Thanks for replying.
After installation of GLPI-9.5.4 in Linux, I have selected the locale is English[US]. Somebody changed the locale is English. On that time on wards, i have faced the issue of Component Memory is showing Mio instead of GB. and i selected the one of the computer under assets. In component tab under the computer, it will show 8096 and 8096 . So Total Memory is 16 GB but it will show 16 Mio.
Agent is : fusion-inventory-agent-2-5.* and Upgraded to 2.6 also and run the agent. But it will show the same the size like Mio.
Recently i have changed the locale to English[US], but the Component Memory is showing MB instead of GB.
I want to do it in original metrics along with size.
Offline
I'm still not sure what memory size you're complaining about. Can you report the HARDWARE and MEMORIES sections of the XML inventory ?
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
Thanks for replying. I take the memories from xml file
<MEMORIES>
<CAPACITY>4096</CAPACITY>
<CAPTION>DIMM3</CAPTION>
<DESCRIPTION>DIMM</DESCRIPTION>
<MANUFACTURER>Kingston</MANUFACTURER>
<MODEL>99U5471-034.A00LF</MODEL>
<NUMSLOTS>2</NUMSLOTS>
<SERIALNUMBER>8E2BAC73</SERIALNUMBER>
<SPEED>1600</SPEED>
<TYPE>DDR3</TYPE>
</MEMORIES>
<MEMORIES>
<CAPTION>DIMM2</CAPTION>
<DESCRIPTION>DIMM</DESCRIPTION>
<NUMSLOTS>3</NUMSLOTS>
</MEMORIES>
<MEMORIES>
<CAPACITY>4096</CAPACITY>
<CAPTION>DIMM1</CAPTION>
<DESCRIPTION>DIMM</DESCRIPTION>
<MANUFACTURER>Kingston</MANUFACTURER>
<MODEL>99U5471-034.A00LF</MODEL>
<NUMSLOTS>4</NUMSLOTS>
<SERIALNUMBER>8E2BAC73</SERIALNUMBER>
<SPEED>1600</SPEED>
<TYPE>DDR3</TYPE>
</MEMORIES>
But in the frontend , it is showing 8MB instead of 8 GB.
Offline
Can you also report as requested the HARDWARE section (removing any sensible data) ?
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
Thanks for replying.
<HARDWARE>
<CHASSIS_TYPE>Low Profile Desktop</CHASSIS_TYPE>
<CHECKSUM>66049</CHECKSUM>
<DEFAULTGATEWAY>192.2.13.252</DEFAULTGATEWAY>
<DNS>192.2.13.12</DNS>
<ETIME>42</ETIME>
<IPADDR>192.2.13.15</IPADDR>
<LASTLOGGEDUSER>testadmin</LASTLOGGEDUSER>
<MEMORY>8066</MEMORY>
<NAME>CHN1CITI037</NAME>
<OSNAME>Microsoft Windows 10 Pro</OSNAME>
<OSVERSION>10.0.19041</OSVERSION>
<PROCESSORN>1</PROCESSORN>
<PROCESSORS>2900</PROCESSORS>
<PROCESSORT>Intel(R) Core(TM) i5-3470S CPU @ 2.90GHz</PROCESSORT>
<USERID>testadmin</USERID>
<UUID>6AC22D00-9E8B-11E3-87DA-A0481C936E5C</UUID>
<VMSYSTEM>Physical</VMSYSTEM>
<WINLANG>1033</WINLANG>
<WINOWNER>user</WINOWNER>
<WINPRODID>12330-72677-18933-AAOEM</WINPRODID>
<WINPRODKEY>JT874-BPG86-6QK9T-6JK6K-M98XF</WINPRODKEY>
<WORKGROUP>test.com</WORKGROUP>
</HARDWARE>
Offline
MEMORY here seems to have the right unit. So can you be a little more accurate: where do you see "8MB" in the frontend ?
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
In glpi, under assets computers component memory column showing 8 MB
Offline
Check if in you have in your locale (around line #10680 in en_GB.po) a block like
#: inc/toolbox.class.php:1244
msgid "Mio"
msgstr "Mo"
In fr_FR.po, it was missing. ANd maybe in other languages ?
And I have a question : how to reload modified locale to reflect the change ?
GLPI V9.5.5 - Serveur Debian 10 - PHP 7.3 - MariaDB 10.3.27
Plugins : news 1.9.0, formcreator 2.12.1, FusionInventory 9.5+3.0
Offline
I opened the file of en_GB.po file under /locale folder
#. TRANS: list of unit (o for octet)
#: inc/toolbox.class.php:1244
msgid "o"
msgstr "o"
#: inc/toolbox.class.php:1244
msgid "Kio"
msgstr "Kio"
#: inc/toolbox.class.php:1244
msgid "Gio"
msgstr "Gio"
#: inc/toolbox.class.php:1244
msgid "Tio"
msgstr "Tio"
i have checked in en_US.po file also. Block is also available which was mentioned by you.
Now, I have upgrade the version 9.5.5 on 9.5.4 along with plugins also. But it will shows the samething
Last edited by gopalakrishna99 (2021-08-03 02:53:10)
Offline
I am having a similar issue, if I go into the Assets -> Computers and set it to display the volume and memory information the values are all in MB with a maximum of 3 digits
Examples:
1.9TB drive is being listed as 19MB
An OS drive with 44G (46110724 bytes) is displayed as 45MB in GLPI
The Logs drive reports 235GB (246295040 bytes) and GLPI oddly displays it as 240 MB
Memory values simply display 8MB instead of 8GB unless there is only 1GB of memory then GLPI will display it as 1024KB
We would like to make the values reflect the proper numbers, it looks like there is truncating and rounding happening that shouldn't be. This behavior is also present in other sections making me think it may be a global variable causing the discrepancies.
We are currently on GLPI 9.5.4, I wanted to address this here before I started digging through thousands of lines of code to figure out where it's slipping up with these values
Looking in the .xml from the Fusion Inventory plugin I am seeing truncating happening on the drive total, I have no clue where it's pulling the 240522 when it should be 246295040 for the total.
<DRIVES>
<FILESYSTEM>xfs</FILESYSTEM>
<FREE>238013</FREE>
<SERIAL>3cb241a8-0149-40cc-9830-23c65e463b5f</SERIAL>
<TOTAL>240522</TOTAL>
<TYPE>/var</TYPE>
<VOLUMN>/dev/mapper/centos-var</VOLUMN>
</DRIVES>
OS reports it as this
/dev/mapper/centos-var 246295040 3979300 242315740 2% /var
Offline
Hi
I have modified the file of dropdown.class.php in glpi-9.5.4 with the following entries
PHP Notice (8): A non well formed numeric value encountered in /var/www/html/glpi954/glpi/inc/dropdown.class.php at line 1554
$value = str_replace(['','',','], ['',","], $value); // unformat value
After changing that entry, it shows the correct ram size in front.php.
Please suggest to me, if this is working fine or not
Last edited by gopalakrishna99 (2021-08-08 16:39:05)
Offline
Hi gopalakrishna99,
After making the suggested edit I'm happy to report that the sizes appear to be good now, even TB is displaying correctly. Thanks for the quick and helpful response!
Offline
Hi,
I tried updating the value you provided but it didn't work, the display unit is still MB instead of GB on Computers and Components.
Did you edit the value as suggested above or have any further updates?
Thanks !
Offline
Pages: 1