From 5a771c3683eeed16838d05fa9f25fac31658460e Mon Sep 17 00:00:00 2001
From: Blinningjr <nicke.l@telia.com>
Date: Thu, 7 Jan 2021 13:51:58 +0100
Subject: [PATCH] Moved example and updated readme

---
 srp_analysis/README.md                               | 10 +++++-----
 srp_analysis/{analysis.json => example/input1.json}  |  0
 srp_analysis/{analysed.json => example/output1.json} |  0
 srp_analysis/{analysed.txt => example/output1.txt}   |  4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
 rename srp_analysis/{analysis.json => example/input1.json} (100%)
 rename srp_analysis/{analysed.json => example/output1.json} (100%)
 rename srp_analysis/{analysed.txt => example/output1.txt} (88%)

diff --git a/srp_analysis/README.md b/srp_analysis/README.md
index 901447c..3ebaafe 100644
--- a/srp_analysis/README.md
+++ b/srp_analysis/README.md
@@ -4,7 +4,7 @@ This is a command line interface analysis tool that analyses the response time a
 
 ## Usage
 
-This is a cli tool that will run an example if no input file is given, see the Reading input from file section bellow for help or run the following for help.
+The tool will run an example if no input file is given, see the Reading input from file section bellow for help or run the following for help.
 ```
 srp_analysis --help
 ```
@@ -28,7 +28,7 @@ or
 sro_analysis --in-file <FILE PATH>
 ```
 
-where <FILE PATH> is the relative path to input json file.
+where `<FILE PATH>` is the relative path to input json file.
 
 ### Writhing output to file
 
@@ -40,12 +40,12 @@ or
 ```
 sro_analysis --out-file <FILE PATH>
 ```
-where <FILE PATH> is the relative path to output file.
+where `<FILE PATH>` is the relative path to output file.
 
 ### Example
 
-An example of using the file `analysis.json` as input and outputting the result to a new file `analysed.txt`.
+An example of using the file `example/input1.json` as input and outputting the result to a new file `example/output1.txt`.
 ```
-srp_analysis -i analysis.json -o analysed.txt
+srp_analysis -i example/input1.json -o example/output1.txt
 ```
 
diff --git a/srp_analysis/analysis.json b/srp_analysis/example/input1.json
similarity index 100%
rename from srp_analysis/analysis.json
rename to srp_analysis/example/input1.json
diff --git a/srp_analysis/analysed.json b/srp_analysis/example/output1.json
similarity index 100%
rename from srp_analysis/analysed.json
rename to srp_analysis/example/output1.json
diff --git a/srp_analysis/analysed.txt b/srp_analysis/example/output1.txt
similarity index 88%
rename from srp_analysis/analysed.txt
rename to srp_analysis/example/output1.txt
index 2afd1bd..6219ffa 100644
--- a/srp_analysis/analysed.txt
+++ b/srp_analysis/example/output1.txt
@@ -1,8 +1,8 @@
 Overview
 	Total Util: 0.85
 	Tasks: T1 T2 T3
-	Priority:  P(R1) = 2  P(T1) = 1  P(T3) = 3  P(R2) = 3  P(T2) = 2
-	Task Resources: T3:( R2 ) T2:( R2 R1 )
+	Priority:  P(T1) = 1  P(T3) = 3  P(T2) = 2  P(R2) = 3  P(R1) = 2
+	Task Resources: T2:( R1 R2 ) T3:( R2 )
 
 Analysis of T1
 	Response Time: 100
-- 
GitLab