From d6fe55fff4f438a3d2e08560d519aa2a311b96e5 Mon Sep 17 00:00:00 2001
From: Marek Chrastina <marek.chrastina@vsb.cz>
Date: Fri, 1 Mar 2019 09:57:11 +0100
Subject: [PATCH] Update it4ifree docs

---
 docs.it4i/prace.md              | 28 +++++++++++++++++++++-------
 snippets/resource_accounting.md |  4 ++--
 2 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/docs.it4i/prace.md b/docs.it4i/prace.md
index 485193d24..99022ed6e 100644
--- a/docs.it4i/prace.md
+++ b/docs.it4i/prace.md
@@ -363,15 +363,29 @@ PRACE users should check their project accounting using the [PRACE Accounting To
 Users who have undergone the full local registration procedure (including signing the IT4Innovations Acceptable Use Policy) and who have received local password may check at any time, how many core-hours have been consumed by themselves and their projects using the command "it4ifree". You need to know your user password to use the command and that the displayed core hours are "system core hours" which differ from PRACE "standardized core hours".
 
 !!! note
-    The **it4ifree** command is a part of it4i.portal.clients package, [located here][j].
+    The **it4ifree** command is a part of it4i.portal.clients package, [located here][pypi].
 
 ```console
 $ it4ifree
-    Password:
-         PID    Total   Used   ...by me Free
-       -------- ------- ------ -------- -------
-       OPEN-0-0 1500000 400644   225265 1099356
-       DD-13-1    10000   2606     2606    7394
+
+Projects I am participating in
+==============================
+PID         Days left      Total    Used WCHs    Used NCHs    WCHs by me    NCHs by me     Free
+----------  -----------  -------  -----------  -----------  ------------  ------------  -------
+OPEN-XX-XX  323                0      5169947      5169947         50001         50001  1292555
+
+
+Projects I am Primarily Investigating
+=====================================
+PID        Login         Used WCHs    Used NCHs
+---------- ----------  -----------  -----------
+OPEN-XX-XX user1            376670       376670
+           user2           4793277      4793277
+
+Legend
+======
+WCH   =    Wall-clock Core Hour
+NCH   =    Normalized Core Hour
 ```
 
 By default file system quota is applied. To check the current status of the quota (separate for HOME and SCRATCH) use
@@ -404,4 +418,4 @@ If the quota is insufficient, contact the [support][15] and request an increase.
 [g]: http://www.prace-ri.eu/Data-Transfer-with-gtransfer
 [h]: http://www.prace-ri.eu/prace-common-production-environment/
 [i]: http://www.prace-ri.eu/accounting-report-tool/
-[j]: https://pypi.python.org/pypi/it4i.portal.clients
+[pypi]: https://pypi.python.org/pypi/it4i.portal.clients
diff --git a/snippets/resource_accounting.md b/snippets/resource_accounting.md
index 42a3c7ac5..f414ed6fc 100644
--- a/snippets/resource_accounting.md
+++ b/snippets/resource_accounting.md
@@ -64,8 +64,8 @@ WCH   =    Wall-clock Core Hour
 NCH   =    Normalized Core Hour
 ```
 
-The **it4ifree** command is a part of `it4i.portal.clients` package, located [here][a].
+The **it4ifree** command is a part of `it4i.portal.clients` package, located [here][pypi].
 
 [1]: job-submission-and-execution.md
 
-[a]: https://pypi.python.org/pypi/it4i.portal.clients
+[pypi]: https://pypi.python.org/pypi/it4i.portal.clients
-- 
GitLab