Commit fc0ef6b0d0a46d219811d6fa3ebede9964763e0d

Authored by Conrad Vermeulen
1 parent 2fa9ed35

KTS-3184

"Dashboard reflecting disk space incorrectly. It is showing the Gig amounts as Meg amounts"
Fixed.

Committed By: Conrad Vermeulen
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8286 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/housekeeper/DiskUsageDashlet.inc.php
... ... @@ -98,12 +98,12 @@ class DiskUsageDashlet extends KTBaseDashlet
98 98 if (OS_WINDOWS)
99 99 {
100 100 $cmd = str_replace( '/','\\',$cmd);
101   - $res = KTUtil::pexec("\"$cmd\" 2>&1");
  101 + $res = KTUtil::pexec("\"$cmd\" -B 1 2>&1");
102 102 $result = implode("\r\n",$res['out']);
103 103 }
104 104 else
105 105 {
106   - $result = shell_exec($cmd." 2>&1");
  106 + $result = shell_exec($cmd." -B 1 2>&1");
107 107 }
108 108  
109 109 if (strpos($result, 'cannot read table of mounted file systems') !== false)
... ...