Skip to content

Commit 691e9ca

Browse files
fix : minor edit in uptime function
1 parent 264bb48 commit 691e9ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ import orangetool
3535

3636
#1- local_ip
3737

38-
local_ip=orange_tool.local_ip() # this function return local ip of board as string
38+
local_ip=orangetool.local_ip() # this function return local ip of board as string
3939

4040
#2- global_ip
4141

42-
global_ip=orange_tool.global_ip() # this function return global ip of board as string
42+
global_ip=orangetool.global_ip() # this function return global ip of board as string
4343

4444
#3- internet
4545

orangetool/orangetool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def time_convert(input_string):
168168
input_hour=input_minute//60
169169
input_minute=int(input_minute-input_hour*60)
170170
input_day=int(input_hour//24)
171-
input_hour=int(input_hour-input_hour*24)
171+
input_hour=int(input_hour-input_day*24)
172172
return str(input_day)+" days, "+str(input_hour)+" hour, "+str(input_minute)+" minutes, "+str(input_sec)+" seconds"
173173

174174
def uptime(DEBUG=False):

0 commit comments

Comments
 (0)