Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
commitd317dcc9a673c6928ca61efc8e34fe2618b90215 (patch)
tree4169c0ff17e2bca09fd2c0278d2525d7be19edde /WorkerForm.cs
parentf7598533f7629330cb0c8a3e85da02e590badfc0 (diff)
Some fixes
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs
index 8b80a3d2..d55d0368 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -814,10 +814,10 @@ namespace com.clusterrr.hakchi_gui
var storageDevice = clovershell.ExecuteSimple($"df {gameSyncStorage} | sed -n '2p' | awk '{{print $1}}'", 3000, true);
var storageStats = clovershell.ExecuteSimple($"df {storageDevice} | tail -n 1 | awk '{{ print $2 \" | \" $3 \" | \" $4 }}'", 3000, true).Split('|');
- ExternalSaves = clovershell.ExecuteSimple("mount | grep /var/lib/clover").Trim().Length > 0;
+ ExternalSaves = clovershell.ExecuteSimple("mount | grep /var/lib/clover").Length > 0;
var writedGamesSizeAll = long.Parse(clovershell.ExecuteSimple($"mkdir -p {rootFsPath}{originalGamesPath} && du -s {rootFsPath}{originalGamesPath} | awk '{{ print $1 }}'", 3000, true)) * 1024;
if (gameSyncStorage != $"{rootFsPath}{originalGamesPath}")
- writedGamesSizeAll += long.Parse(clovershell.ExecuteSimple($"mkdir -p {gameSyncStorage}/{SubConsoleDirectory}/ && du -s {gameSyncStorage}/{SubConsoleDirectory}/ | awk '{{ print $1 }}'", 3000, true)) * 1024;
+ writedGamesSizeAll += long.Parse(clovershell.ExecuteSimple($"mkdir -p {gameSyncStorage}/{SubConsoleDirectory} && du -s {gameSyncStorage}/{SubConsoleDirectory} | awk '{{ print $1 }}'", 3000, true)) * 1024;
WritedGamesSize = writedGamesSizeAll;
SaveStatesSize = long.Parse(clovershell.ExecuteSimple("mkdir -p /var/lib/clover/profiles/0/ && du -s /var/lib/clover/profiles/0/ | awk '{ print $1 }'", 3000, true)) * 1024;
NandCTotal = long.Parse(storageStats[0]) * 1024;