29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
|
Index: lib/ipmi_ime.c
|
||
|
--- lib/ipmi_ime.c.orig
|
||
|
+++ lib/ipmi_ime.c
|
||
|
@@ -427,7 +427,7 @@ static int ImeUpgrade(struct ipmi_intf *intf, char* im
|
||
|
shownPercent = currentPercent;
|
||
|
printf("Percent: %02i, ", shownPercent);
|
||
|
time(¤t);
|
||
|
- printf("Elapsed time %02ld:%02ld\r",((current-start)/60), ((current-start)%60));
|
||
|
+ printf("Elapsed time %02lld:%02lld\r",(long long)((current-start)/60), (long long)((current-start)%60));
|
||
|
fflush(stdout);
|
||
|
|
||
|
}
|
||
|
@@ -476,13 +476,13 @@ static int ImeUpgrade(struct ipmi_intf *intf, char* im
|
||
|
)
|
||
|
{
|
||
|
time(&end);
|
||
|
- printf("Update Completed in %02ld:%02ld\n",(end-start)/60, (end-start)%60);
|
||
|
+ printf("Update Completed in %02lld:%02lld\n",(long long)(end-start)/60, (long long)(end-start)%60);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
time(&end);
|
||
|
printf("Update Error\n");
|
||
|
- printf("\nTime Taken %02ld:%02ld\n",(end-start)/60, (end-start)%60);
|
||
|
+ printf("\nTime Taken %02lld:%02lld\n",(long long)(end-start)/60, (long long)(end-start)%60);
|
||
|
}
|
||
|
|
||
|
return rc;
|