提交 36780a86 编写于 作者: J John Ferlan

util: Change usage of ent->d_type != DT_DIR

Fix a broken non-Linux build to use the !virFileIsDir instead
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 8d5bba08
...@@ -2693,7 +2693,7 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor, ...@@ -2693,7 +2693,7 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor,
* "mon_L3_01" are two target directories for a two nodes system * "mon_L3_01" are two target directories for a two nodes system
* with resource utilization data file for each node respectively. * with resource utilization data file for each node respectively.
*/ */
if (ent->d_type != DT_DIR) if (!virFileIsDir(ent->d_name))
continue; continue;
/* Looking for directory has a prefix 'mon_L' */ /* Looking for directory has a prefix 'mon_L' */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册