mirror of https://gitee.com/openkylin/glib2.0.git
* 改动说明:适配麒麟系统文件大小的计算规范(XB以1024进制),glib原本实现(XB以1000进制;XiB以1024进制)
* BUG号:156528 【GTK需求19254】【文档查看器】通过文档查看器打开文件列表的文件大小与属性里的大小不一致 103652 【用例242456】【归档管理器】归档文件-打开窗口显示文件大小与文件管理器不一致 * 需求/任务号: * 其他改动: * 影响域说明:影响文件、磁盘大小换算结果的显示
This commit is contained in:
parent
1a0ff87a8a
commit
2df486b024
|
@ -2751,7 +2751,7 @@ g_nullify_pointer (gpointer *nullify_location)
|
|||
*nullify_location = NULL;
|
||||
}
|
||||
|
||||
#define KILOBYTE_FACTOR (G_GOFFSET_CONSTANT (1000))
|
||||
#define KILOBYTE_FACTOR (G_GOFFSET_CONSTANT (1024))
|
||||
#define MEGABYTE_FACTOR (KILOBYTE_FACTOR * KILOBYTE_FACTOR)
|
||||
#define GIGABYTE_FACTOR (MEGABYTE_FACTOR * KILOBYTE_FACTOR)
|
||||
#define TERABYTE_FACTOR (GIGABYTE_FACTOR * KILOBYTE_FACTOR)
|
||||
|
|
Loading…
Reference in New Issue